https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119680
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-04-08 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Possibly do it like for libcpp, always build libbacktrace PIE (like we build it PIC for host-hared): diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index 75b3a7536f1..6549cdeacf4 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -175,11 +175,16 @@ else fi fi +# Enable --enable-host-pie. +AC_ARG_ENABLE(host-pie, +[AS_HELP_STRING([--enable-host-pie], + [build host code as PIE])], +[PIC_FLAG=-fPIE], [PIC_FLAG=]) # Enable --enable-host-shared. AC_ARG_ENABLE(host-shared, [AS_HELP_STRING([--enable-host-shared], [build host code as shared libraries])], -[PIC_FLAG=-fPIC], [PIC_FLAG=]) +[PIC_FLAG=-fPIC]) AC_SUBST(PIC_FLAG) # Enable Intel CET on Intel CET enabled host if jit is enabled.