Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: -m32: ld: skipping incompatible /lib/libgcc_s.so when searching for -lgcc_s
On Wed, Sep 16, 2026 at 13:06:56 +1000, matthew green wrote:
> > # link bcc/bcc
> > gcc -m32 -Wl,-zrelro -Wl,-R/usr/pkg/lib -pie -shared-libgcc -Wl,--warn-shared-textrel -Wl,-z,relro -o bcc bcc.o -Wl,-rpath-link,/lib -L=/lib
>
> i'm pretty sure: don't mix "-m32" and "-L=/lib". ie, this is a
> build issue.
>
> find what is adding "-Wl,-rpath-link,/lib -L=/lib" and remove it.
/lib is default anyway, so it doesn't matter if it's picked up from
the internal default list or from the command line options - it will
be processed either way. Then the magic kicks in to check $compat32
subdir for /lib and /usr/lib. Wrong arch (64 bit) will be skipped
silently if 32-bit library is found.
-uwe
Home |
Main Index |
Thread Index |
Old Index