From c5752619ac557dbfa340de2ba712b87b1b54a407 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Thu, 13 Aug 2026 10:19:23 +0800 Subject: [PATCH] metamod: remove -s strip flag to preserve linker markers The -s flag causes `strip` to run on the output binary, which removes all symbols including sentinel symbols used by packaging systems (e.g. Gentoo's __gentoo_check_ldflags__) to verify that LDFLAGS were respected. Remove the flag so that stripping is left to the build system / packager. --- metamod/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/metamod/CMakeLists.txt b/metamod/CMakeLists.txt index 36c2287..1845143 100644 --- a/metamod/CMakeLists.txt +++ b/metamod/CMakeLists.txt @@ -46,7 +46,6 @@ if (DEBUG) set(COMPILE_FLAGS "${COMPILE_FLAGS} -g3 -O0 -ggdb") else() set(COMPILE_FLAGS "${COMPILE_FLAGS} -g0 -O3 -fno-stack-protector") - set(LINK_FLAGS "${LINK_FLAGS} -s") endif() # Check Intel C++ compiler