Skip to content

cmake: remove duplicate -Wl,-z,notext flags introduced in #1177 - #1190

Open
blshkv wants to merge 2 commits into
rehlds:masterfrom
blshkv:fix/notext-dedup
Open

cmake: remove duplicate -Wl,-z,notext flags introduced in #1177#1190
blshkv wants to merge 2 commits into
rehlds:masterfrom
blshkv:fix/notext-dedup

Conversation

@blshkv

@blshkv blshkv commented Sep 7, 2026

Copy link
Copy Markdown

PR #1177 added -Wl,-z,notext unconditionally before the first set_target_properties call, which is correct and sufficient. However, the same flag was also prepended to LINK_FLAGS inside each of the three set_target_properties branches (Android, non-Android Xash, non-Xash), causing it to be appended to LINK_FLAGS four times total.

This PR removes the three redundant copies, keeping only the single unconditional addition.

The flag was already added unconditionally before the first
set_target_properties call, but was also prepended inside each of the
three branches (Android / non-Android Xash / non-Xash), resulting in it
being appended to LINK_FLAGS four times total.

Remove the three redundant copies; the single unconditional addition is
sufficient.
@blshkv

blshkv commented Sep 7, 2026

Copy link
Copy Markdown
Author

The Linux CI check is failing due to transient apt 404 errors on Debian Bullseye security mirrors (Bullseye is EOL), not related to this PR. Windows build passes fine.

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.

1 participant