Fixed samba evaluation on freebsd (I hope)

svn path=/nixpkgs/trunk/; revision=10393
This commit is contained in:
Yury G. Kudryashov 2008-01-29 23:00:08 +00:00
parent 4385e2393b
commit f0626ba077
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam];
configureFlags = ''--with-pam --with-smbmount --datadir=$out/share
--with-aio-support --with-libiconv=${stdenv.gcc.libc}'';
--with-aio-support''
+ (if (stdenv.gcc.libc != null) then "--with-libiconv=${stdenv.gcc.libc}" else "");
postUnpack = "sourceRoot=\$sourceRoot/source";
configFile = ./smb.conf;