Jakub Jelinek <ja...@redhat.com> writes:

> On Tue, Apr 08, 2025 at 03:03:03PM +0200, Richard Biener wrote:
>> 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.
>> 
>> This fixes the issues observed from my package cross compiler builds, 
>> I'll give this wider testing from package builds (native builds, 
>> builts with plugins, thus --enable-host-shared, and without either).
>> 
>> OK if there are no issues showing up from this?
>> 
>> Thanks,
>> Richard.
>> 
>>      PR bootstrap/119680
>> libbacktrace/
>>      * configure.ac (--enable-host-pie): Handle by setting PIC_FLAG
>>      to -fPIE.
>>      * configure: Regenerate.
>
> LGTM, but please give Ian a day to comment.

This is fine. Thanks.

Ian

Reply via email to