https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120394

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2025-05-22
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
c++tools/configure.ac has:

# Check whether --enable-default-pie was given.
AC_ARG_ENABLE(default-pie,
[AS_HELP_STRING([--enable-default-pie],
                  [enable Position Independent Executable as default])],
[PICFLAG=-fPIE], [PICFLAG=])

So yes --disable-default-pie will be handled incorrectly here.


AC_ARG_ENABLE(host-pie,
[AS_HELP_STRING([--enable-host-pie],
                [build host code as PIE])],
[PICFLAG=-fPIE; LD_PICFLAG=-pie], [])
AC_SUBST(PICFLAG)

is also wrong.

So is:
AC_ARG_ENABLE(host-bind-now,
[AS_HELP_STRING([--enable-host-bind-now],
       [link host code as BIND_NOW])],
[LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"], [])

Reply via email to