aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-11-10 17:34:26 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-11-10 17:34:26 -0500
commit131f3b99a259b15cceff39c0d1b0ab31ad3c1af2 (patch)
treec46e6620d3555f132ed1f3b9ccb3e5e0867d10e7
parent25b6a28e53687a3ec41b2d5649fef2c9bfd99329 (diff)
downloadlite-xl-plugin-manager-131f3b99a259b15cceff39c0d1b0ab31ad3c1af2.tar.gz
lite-xl-plugin-manager-131f3b99a259b15cceff39c0d1b0ab31ad3c1af2.zip
Possible link order fix.
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 8792fc0..02df587 100755
--- a/build.sh
+++ b/build.sh
@@ -60,8 +60,8 @@ if [[ "$@" == *"-DLPM_STATIC"* ]]; then
fi
[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && COMPILE_FLAGS="$COMPILE_FLAGS -DLUA_USE_LINUX" && LINK_FLAGS="$LINK_FLAGS -ldl"
-[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && LINK_FLAGS="$LINK_FLAGS -lbcrypt -lz -lole32 -lcrypt32 -lrpcrt4 -lsecur32"
[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && "$@" != *"-DLPM_NO_NETWORK"* && LINK_FLAGS="$LINK_FLAGS -lws2_32 -lwinhttp"
+[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && LINK_FLAGS="$LINK_FLAGS -lbcrypt -lz -lole32 -lcrypt32 -lrpcrt4 -lsecur32"
[[ $OSTYPE == *'darwin'* ]] && LINK_FLAGS="$LINK_FLAGS -liconv -framework Foundation"
[[ $OSTYPE == *'darwin'* ]] && "$@" != *"-DLPM_NO_NETWORK"* && LINK_FLAGS="$LINK_FLAGS -framework Security"