vsftpd: fixing build in x86_64/i686
It was building fine in the sheevaplug though.
This commit is contained in:
parent
a72f66aded
commit
2169b0ab2e
1 changed files with 7 additions and 3 deletions
|
@ -14,9 +14,13 @@ stdenv.mkDerivation (rec {
|
|||
sed -i -e 's/-idirafter.*//' Makefile
|
||||
'';
|
||||
|
||||
preBuild =''
|
||||
makeFlagsArray=( "LIBS=${if sslEnable then "-lcrypt -lssl -lcrypto " else ""}-lpam -lcap" )
|
||||
'';
|
||||
preBuild = let
|
||||
sslLibs = if sslEnable then "-lcrypt -lssl -lcrypto " else "";
|
||||
in ''
|
||||
makeFlagsArray=( "LIBS=${sslLibs}-lpam -lcap -fstack-protector" )
|
||||
'';
|
||||
|
||||
# It won't link without this flag, used in CFLAGS
|
||||
|
||||
buildInputs = [ openssl libcap pam ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue