Merge pull request #242251 from nrhtr/luajit-static-build
luajit: add option for static build
This commit is contained in:
commit
529d5e2835
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue