mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
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,9 +14,13 @@ 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 ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user