Skip to content

regamedll: remove -s strip flag to preserve linker markers - #1176

Merged
s1lentq merged 1 commit into
rehlds:masterfrom
blshkv:fix-strip-linker-flag
Aug 27, 2026
Merged

regamedll: remove -s strip flag to preserve linker markers#1176
s1lentq merged 1 commit into
rehlds:masterfrom
blshkv:fix-strip-linker-flag

Conversation

@blshkv

@blshkv blshkv commented Aug 13, 2026

Copy link
Copy Markdown

Problem

LINK_FLAGS is initialized to "-s" in the non-debug branch, which causes strip to run on the output shared library. This removes all symbols including sentinel symbols used by packaging systems to verify that LDFLAGS were respected. For example, Gentoo injects --defsym=__gentoo_check_ldflags__=0 into LDFLAGS and checks the resulting binary still contains it — -s destroys that symbol, causing a QA failure.

Fix

Replace set(LINK_FLAGS "-s") with set(LINK_FLAGS ""). Stripping should be left to the build system or packager.

Related

Same issue was fixed in sibling projects under the same vendor:

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:
rehlds/Metamod-R#93
@s1lentq
s1lentq merged commit 9d24cfc into rehlds:master Aug 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants