aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-10-14 18:06:44 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-10-14 18:06:44 -0400
commit14bef796091c95a39043a275d4635baa7632ee8f (patch)
tree4ff76b04b55369e1646439aeed1f9644bc11a0ec /build.sh
parentbb61f8bf85c653d9bb14a47c869bba15cd970054 (diff)
downloadlite-xl-plugin-manager-14bef796091c95a39043a275d4635baa7632ee8f.tar.gz
lite-xl-plugin-manager-14bef796091c95a39043a275d4635baa7632ee8f.zip
Specifically made include directories non-relative.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 7545ac6..1db0b34 100755
--- a/build.sh
+++ b/build.sh
@@ -8,8 +8,8 @@
: ${JOBS=4}
SRCS="src/*.c"
-COMPILE_FLAGS="$CFLAGS -Ilib/prefix/include" # We specifically rename this and LDFLAGS, because exotic build environments export these to subprcoesses.
-LINK_FLAGS="$LDFLAGS -lm -Llib/prefix/lib -Llib/prefix/lib64" # And ideally we don't want to mess with the underlying build processes, unless we're explicit about it.
+COMPILE_FLAGS="$CFLAGS -I`pwd`/lib/prefix/include" # We specifically rename this and LDFLAGS, because exotic build environments export these to subprcoesses.
+LINK_FLAGS="$LDFLAGS -lm -L`pwd`/lib/prefix/lib -L`pwd`/lib/prefix/lib64" # And ideally we don't want to mess with the underlying build processes, unless we're explicit about it.
[[ "$@" == "clean" ]] && rm -rf lib/libgit2/build lib/zlib/build lib/libzip/build lib/xz/build lib/mbedtls/build lib/prefix lua $BIN *.exe src/lpm.luac src/lpm.lua.c && exit 0
cmake --version >/dev/null 2>/dev/null || { echo "Please ensure that you have cmake installed." && exit -1; }