vsftpd: fixing build in x86_64/i686
It was building fine in the sheevaplug though.
This commit is contained in:
parent
a72f66aded
commit
2169b0ab2e
@ -14,10 +14,14 @@ stdenv.mkDerivation (rec {
|
|||||||
sed -i -e 's/-idirafter.*//' Makefile
|
sed -i -e 's/-idirafter.*//' Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild =''
|
preBuild = let
|
||||||
makeFlagsArray=( "LIBS=${if sslEnable then "-lcrypt -lssl -lcrypto " else ""}-lpam -lcap" )
|
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 ];
|
buildInputs = [ openssl libcap pam ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user