Skip to content

Conversation

@space88man
Copy link
Contributor

@space88man space88man commented Jan 3, 2026

When building on EL with the default flags (LTO), the build fails during the final link stage with many undefined symbol errors. Explicitly enabling the linker plugin ensures the toolchain processes LTO IR during linking.

This should not affect Debian or other toolchains that implicitly enable the plugin, where the flag is redundant and has no effect.

Tested builds:

  • AlmaLinux 10: GCC 14.3.1 (quirk: disable iptc here, no legacy iptables)
  • AlmaLinux 9: GCC 11.5.0
  • AlmaLinux 9/10 + gcc-toolset-15: GCC 15.1.1 (quirk: don't need -latomic here)

@space88man space88man changed the title Add linker flag to fix LTO on EL Add linker flag to fix LTO for some toolchains Jan 3, 2026
sipwise-jenkins pushed a commit that referenced this pull request Jan 9, 2026
- address GH #2049

Closes #2049
Closes #2050

Change-Id: I7a366e5e46808f8eb87a5f7cbc0c10ec89d162d4
(cherry picked from commit 92ff228)
sipwise-jenkins pushed a commit that referenced this pull request Jan 9, 2026
- address GH #2049

Closes #2049
Closes #2050

Change-Id: I7a366e5e46808f8eb87a5f7cbc0c10ec89d162d4
(cherry picked from commit 92ff228)
sipwise-jenkins pushed a commit that referenced this pull request Jan 9, 2026
- address GH #2049

Closes #2049
Closes #2050

Change-Id: I7a366e5e46808f8eb87a5f7cbc0c10ec89d162d4
(cherry picked from commit 92ff228)
sipwise-jenkins pushed a commit that referenced this pull request Jan 9, 2026
- address GH #2049

Closes #2049
Closes #2050

Change-Id: I7a366e5e46808f8eb87a5f7cbc0c10ec89d162d4
(cherry picked from commit 92ff228)
(cherry picked from commit b5a7952)
sipwise-jenkins pushed a commit that referenced this pull request Jan 9, 2026
- address GH #2049

Closes #2049
Closes #2050

Change-Id: I7a366e5e46808f8eb87a5f7cbc0c10ec89d162d4
(cherry picked from commit 92ff228)
(cherry picked from commit 9529e17)
sipwise-jenkins pushed a commit that referenced this pull request Jan 9, 2026
- address GH #2049

Closes #2049
Closes #2050

Change-Id: I7a366e5e46808f8eb87a5f7cbc0c10ec89d162d4
(cherry picked from commit 92ff228)
(cherry picked from commit cc68096)
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