lua5_1: fixup a recent regression
Commit 57832e625c
(PR #119860) switched to using SYSCFLAGS,
but lua 5.1 calls it MYCFLAGS. We noticed due to broken luarocks build:
https://hydra.nixos.org/build/142663274
This commit is contained in:
parent
850880e854
commit
55282bd6f6
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ self = stdenv.mkDerivation rec {
|
|||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
makeFlagsArray+=(CFLAGS='-O2 -fPIC${lib.optionalString compat " -DLUA_COMPAT_ALL"} $(SYSCFLAGS)' )
|
||||
makeFlagsArray+=(CFLAGS='-O2 -fPIC${lib.optionalString compat " -DLUA_COMPAT_ALL"} $(${
|
||||
if lib.versionAtLeast luaversion "5.2" then "SYSCFLAGS" else "MYCFLAGS"})' )
|
||||
makeFlagsArray+=(${lib.optionalString stdenv.isDarwin "CC=\"$CC\""}${lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) " 'AR=${stdenv.cc.targetPrefix}ar rcu'"})
|
||||
|
||||
installFlagsArray=( TO_BIN="lua luac" INSTALL_DATA='cp -d' \
|
||||
|
|
Loading…
Reference in a new issue