summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeremy Parker <jeremyp@booktopia.com.au>2023-07-08 16:21:54 +1000
committerJeremy Parker <jeremyp@booktopia.com.au>2023-07-09 17:19:27 +1000
commit69946ea4cf13fdcc95b0df3c682d4977ffbc9699 (patch)
treebb2e702915978342dded6ba97770502469c9c292
parent687ed41b532af50e440258159b4360e783bad87e (diff)
downloadnixpkgs-69946ea4cf13fdcc95b0df3c682d4977ffbc9699.tar
nixpkgs-69946ea4cf13fdcc95b0df3c682d4977ffbc9699.tar.gz
nixpkgs-69946ea4cf13fdcc95b0df3c682d4977ffbc9699.tar.bz2
nixpkgs-69946ea4cf13fdcc95b0df3c682d4977ffbc9699.tar.lz
nixpkgs-69946ea4cf13fdcc95b0df3c682d4977ffbc9699.tar.xz
nixpkgs-69946ea4cf13fdcc95b0df3c682d4977ffbc9699.tar.zst
nixpkgs-69946ea4cf13fdcc95b0df3c682d4977ffbc9699.zip
luajit: set BUILDMODE flag for static builds
-rw-r--r--pkgs/development/interpreters/luajit/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/luajit/default.nix b/pkgs/development/interpreters/luajit/default.nix
index 044a16ec723..16c2876f9f2 100644
--- a/pkgs/development/interpreters/luajit/default.nix
+++ b/pkgs/development/interpreters/luajit/default.nix
@@ -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;