mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
luajit: set BUILDMODE flag for static builds
This commit is contained in:
parent
687ed41b53
commit
69946ea4cf
@ -98,7 +98,8 @@ stdenv.mkDerivation rec {
|
||||
"DEFAULT_CC=cc"
|
||||
"CROSS=${stdenv.cc.targetPrefix}"
|
||||
"HOST_CC=${buildStdenv.cc}/bin/cc"
|
||||
] ++ lib.optional enableJITDebugModule "INSTALL_LJLIBD=$(INSTALL_LMOD)";
|
||||
] ++ lib.optional enableJITDebugModule "INSTALL_LJLIBD=$(INSTALL_LMOD)"
|
||||
++ lib.optional stdenv.hostPlatform.isStatic "BUILDMODE=static";
|
||||
enableParallelBuilding = true;
|
||||
env.NIX_CFLAGS_COMPILE = toString XCFLAGS;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user