uwimap: fix makeFlags

This commit is contained in:
Robin Gloster 2019-10-27 22:48:01 +01:00 committed by Jan Tojnar
parent 769dfc2bea
commit 20b02b80aa
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -8,12 +8,12 @@ stdenv.mkDerivation ({
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak"; sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
}; };
makeFlags = if stdenv.isDarwin makeFlags = [ (if stdenv.isDarwin
then "osx" then "osx"
else "lnp" # Linux with PAM modules; else "lnp") ] # Linux with PAM modules;
# -fPIC is required to compile php with imap on x86_64 systems # -fPIC is required to compile php with imap on x86_64 systems
+ stdenv.lib.optionalString stdenv.isx86_64 " EXTRACFLAGS=-fPIC" ++ stdenv.lib.optional stdenv.isx86_64 "EXTRACFLAGS=-fPIC"
+ stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) " CC=${stdenv.hostPlatform.config}-gcc RANLIB=${stdenv.hostPlatform.config}-ranlib"; ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "CC=${stdenv.hostPlatform.config}-gcc" "RANLIB=${stdenv.hostPlatform.config}-ranlib" ];
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];