python3Packages.bezier: unbreak on Darwin
This commit is contained in:
@@ -50,7 +50,12 @@ buildPythonPackage rec {
|
||||
gfortran
|
||||
];
|
||||
|
||||
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux "-z,noexecstack";
|
||||
env = {
|
||||
# -fmacro-prefix-map is not a valid option for Fortran.
|
||||
# This is true on all platforms, but the flag only seems to be a problem on Darwin.
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-complain-wrong-lang";
|
||||
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux "-z,noexecstack";
|
||||
};
|
||||
};
|
||||
NIX_CFLAGS_COMPILE = toString [
|
||||
"-Wno-error=incompatible-pointer-types"
|
||||
|
||||
Reference in New Issue
Block a user