Skip to content

build: remove --start-group/--end-group linker flags (CentOS no longer targeted) - #3838

Merged
flomnes merged 3 commits into
developfrom
fix/remove-ld-group
Aug 4, 2026
Merged

build: remove --start-group/--end-group linker flags (CentOS no longer targeted)#3838
flomnes merged 3 commits into
developfrom
fix/remove-ld-group

Conversation

@flomnes

@flomnes flomnes commented Jul 28, 2026

Copy link
Copy Markdown
Member

Summary

Removes the --start-group / --end-group GNU linker flags that were added in PR #3561 to work around circular static library dependencies on CentOS 7. Since CentOS 7 is no longer a target platform, these flags are no longer needed.

Changes

  • CMakeLists.txt: Removed LINKER:--start-group and LINKER:--end-group from add_link_options(). These were causing the linker warning missing --end-group; added as last command line option on every build because add_link_options() applies them globally rather than at the end of the link line.
  • .github/workflows/oracle8.yml: Added fix/remove-ld-group to the list of triggered branches so the Oracle 8 CI builds this branch and validates the change.

Rationale

  1. The original flags were a workaround for CentOS 7's older GNU ld. CentOS 7 is no longer supported.
  2. add_link_options() applies --end-group to every target, but ld requires it as the absolute last argument — hence the warning on every link step.
  3. If circular dependencies reappear on a future platform, the fix should use target_link_options() per-target instead of add_link_options() to ensure correct placement.

Removed 'fix/remove-ld-group' branch from workflow triggers.
@flomnes
flomnes merged commit 29236cc into develop Aug 4, 2026
7 of 8 checks passed
@flomnes
flomnes deleted the fix/remove-ld-group branch August 4, 2026 11:10
@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants