From 5f256e1f92bf7b495667a0ff453b491f98a38fbf Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 3 Nov 2026 22:44:22 +0100 Subject: 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. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build.sh') 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")" g++ -m32 -O2 -std=c++17 -Wall -Wextra -Werror -fPIC -shared -fvisibility=hidden -fno-omit-frame-pointer \ -o libhl2hake.so \ 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 \ - -ldl + -ldl -Wl,--no-undefined file libhl2hake.so -- cgit v1.2.3