HomeFreeBSD

lib{c,thr}: add DT_RUNPATH for gcc -m32

Description

lib{c,thr}: add DT_RUNPATH for gcc -m32

To allow gcc -m32 to work, link libc and libthr with --rpath-/usr/lib32.
When called with -m32, gcc is currently unable to communicate to
the bfd linker that it should look in /usr/lib32 to resolve needed (as
opposed to explicitly linked) libraries so we need to provide a hint.

See also: https://sourceware.org/bugzilla/show_bug.cgi?id=31395

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D43910

Details

Provenance
brooksAuthored on Feb 19 2024, 10:44 PM
Reviewer
kib
Differential Revision
D43910: lib{c,sys}: move auxargs more firmly into libsys
Parents
rG99ea67573164: lib{c,sys}: move auxargs more firmly into libsys
Branches
Unknown
Tags
Unknown