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
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