]> git.ipfire.org Git - thirdparty/gcc.git/commit
bootstrap/119680 - fix cross-compiler build with --enable-host-shared
authorRichard Biener <rguenther@suse.de>
Tue, 8 Apr 2025 12:57:05 +0000 (14:57 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 9 Apr 2025 07:38:17 +0000 (09:38 +0200)
commitfaff25435b0d23b2ac4deef5a9434c8cd098c0d2
tree5bbb7e6d42a4767814d8ba74e3fedb9f37b84497
parent2d7e1d6e40a13a5f160b584336795b80f193ec3b
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.
libbacktrace/configure
libbacktrace/configure.ac