From b47c0b3c398bdcb047b95743f28a6beacd5aea9f Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Thu, 13 Aug 2026 14:36:40 +0800 Subject: [PATCH] regamedll: remove -s strip flag to preserve linker markers The -s flag strips all symbols from the output shared library, including sentinel symbols used by packaging systems to verify LDFLAGS were respected (e.g. Gentoo's __gentoo_check_ldflags__). Same issue fixed in the sibling project: https://github.com/rehlds/Metamod-R/pull/93 --- regamedll/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/CMakeLists.txt b/regamedll/CMakeLists.txt index b06fbde60..1eb1d4dd3 100644 --- a/regamedll/CMakeLists.txt +++ b/regamedll/CMakeLists.txt @@ -41,7 +41,7 @@ set(LINK_LIBS dl) # do not strip debuginfo during link if (NOT DEBUG) - set(LINK_FLAGS "-s") + set(LINK_FLAGS "") endif() # add -m32 flag only on 64-bit systems, if building for 64-bit wasn't enabled with XASH_COMPAT