aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-13 14:47:00 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-13 14:47:00 -0500
commit17ce7c5ee47b4febde65d571993d4c963d85fcc1 (patch)
tree789075caebcd656fd8ec96fad818e861114abd67 /build.sh
parent9424e382ece5181f00f70f79219e3248a468eeaa (diff)
downloadlite-xl-plugin-manager-17ce7c5ee47b4febde65d571993d4c963d85fcc1.tar.gz
lite-xl-plugin-manager-17ce7c5ee47b4febde65d571993d4c963d85fcc1.zip
Updated it so that lpm can run tests.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 6589c04..5bfbff1 100755
--- a/build.sh
+++ b/build.sh
@@ -43,7 +43,7 @@ if [[ "$@" == *"-DLPM_STATIC"* ]]; then
xxd -i src/lpm.luac > src/lpm.lua.c
fi
-[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && LDFLAGS="$LDFLAGS -ldl"
+[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && CFLAGS="$CFLAGS -DLUA_USE_LINUX" && LDFLAGS="$LDFLAGS -ldl"
[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && LDFLAGS="$LDFLAGS -lbcrypt -lws2_32 -lz -lwinhttp -lole32 -lcrypt32 -lrpcrt4"
[[ $OSTYPE == *'darwin'* ]] && LDFLAGS="$LDFLAGS -liconv -framework Security -framework Foundation"