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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:faff25435b0d23b2ac4deef5a9434c8cd098c0d2

commit r15-9327-gfaff25435b0d23b2ac4deef5a9434c8cd098c0d2
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Apr 8 14:57:05 2025 +0200

    bootstrap/119680 - fix cross-compiler build with --enable-host-shared

    It seems that at least when cross-compiling at least collect2 pulls
    in objects from libbacktrace.a which is linked via LIBDEPS.  But
    libbacktrace for the host is only built -fPIC with --enable-host-shared
    but not -fPIE with --enable-host-pie so this fails.  The following
    teaches libbacktrace about --enable-host-pie and handles it similar
    to libcpp.

            PR bootstrap/119680
    libbacktrace/
            * configure.ac (--enable-host-pie): Handle by setting PIC_FLAG
            to -fPIE.
            * configure: Regenerate.

Reply via email to