php53: fix build on darwin (close #748)
* add empty unix.h header * build with kerberos * ensure the binary has no extension
This commit is contained in:
committed by
Vladimír Čunát
parent
5b4e0207ba
commit
b4105cfaff
@@ -8,17 +8,23 @@ stdenv.mkDerivation {
|
||||
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
|
||||
};
|
||||
|
||||
makeFlags = "lnp" # Linux with PAM modules
|
||||
makeFlags = if stdenv.isDarwin
|
||||
then "osx"
|
||||
else "lnp" # Linux with PAM modules;
|
||||
# -fPIC is required to compile php with imap on x86_64 systems
|
||||
+ stdenv.lib.optionalString stdenv.isx86_64 " EXTRACFLAGS=-fPIC";
|
||||
|
||||
buildInputs = [ pam openssl ];
|
||||
buildInputs = [ openssl ]
|
||||
++ stdenv.lib.optional (!stdenv.isDarwin) pam;
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e s,/usr/local/ssl,${openssl}, \
|
||||
src/osdep/unix/Makefile
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
|
||||
"-I${openssl}/include/openssl";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib $out/include
|
||||
cp c-client/*.h c-client/linkage.c $out/include
|
||||
|
||||
Reference in New Issue
Block a user