diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-03 22:44:22 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-03 22:44:22 +0100 |
| commit | 5f256e1f92bf7b495667a0ff453b491f98a38fbf (patch) | |
| tree | a19081268ca0ea665869dc4655325308b5881ba8 /build.sh | |
| parent | Startup crash: skip fullbright command when off; drop bad owner netvars; add ... (diff) | |
| download | hl2h-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 '')
| -rwxr-xr-x | build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -4,5 +4,5 @@ cd "$(dirname "$0")" | |||
| 4 | g++ -m32 -O2 -std=c++17 -Wall -Wextra -Werror -fPIC -shared -fvisibility=hidden -fno-omit-frame-pointer \ | 4 | g++ -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 |
| 8 | file libhl2hake.so | 8 | file libhl2hake.so |
