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"
|
"DEFAULT_CC=cc"
|
||||||
"CROSS=${stdenv.cc.targetPrefix}"
|
"CROSS=${stdenv.cc.targetPrefix}"
|
||||||
"HOST_CC=${buildStdenv.cc}/bin/cc"
|
"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;
|
enableParallelBuilding = true;
|
||||||
env.NIX_CFLAGS_COMPILE = toString XCFLAGS;
|
env.NIX_CFLAGS_COMPILE = toString XCFLAGS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue