summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-03 22:44:22 +0100
committersalmonik <salmonik@tuta.io>2026-11-03 22:44:22 +0100
commit5f256e1f92bf7b495667a0ff453b491f98a38fbf (patch)
treea19081268ca0ea665869dc4655325308b5881ba8 /build.sh
parentStartup crash: skip fullbright command when off; drop bad owner netvars; add ... (diff)
downloadhl2h-5f256e1f92bf7b495667a0ff453b491f98a38fbf.tar.gz
hl2h-5f256e1f92bf7b495667a0ff453b491f98a38fbf.zip
Fix undefined fullbright symbols; link with --no-undefined
The fullbright_update/fullbright_invalidate definitions were lost when the old text-menu section was removed, leaving undefined symbols that made the dynamic loader reject libhl2hake.so. Restore both definitions and add -Wl,--no-undefined so missing definitions fail the build instead of the game.
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 b72bd2f..51b1ca9 100755
--- a/build.sh
+++ b/build.sh
@@ -4,5 +4,5 @@ cd "$(dirname "$0")"
4g++ -m32 -O2 -std=c++17 -Wall -Wextra -Werror -fPIC -shared -fvisibility=hidden -fno-omit-frame-pointer \ 4g++ -m32 -O2 -std=c++17 -Wall -Wextra -Werror -fPIC -shared -fvisibility=hidden -fno-omit-frame-pointer \
5 -o libhl2hake.so \ 5 -o libhl2hake.so \
6 src/hl2h.cpp src/modules.cpp src/cinput.cpp src/netvars.cpp src/menu.cpp src/gui.cpp src/esp.cpp src/server.cpp src/bones.cpp src/vischeck.cpp \ 6 src/hl2h.cpp src/modules.cpp src/cinput.cpp src/netvars.cpp src/menu.cpp src/gui.cpp src/esp.cpp src/server.cpp src/bones.cpp src/vischeck.cpp \
7 -ldl 7 -ldl -Wl,--no-undefined
8file libhl2hake.so 8file libhl2hake.so