luajit: set BUILDMODE flag for static builds

This commit is contained in:
Jeremy Parker 2023-07-08 16:21:54 +10:00
parent 687ed41b53
commit 69946ea4cf

View File

@ -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;