https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113648
--- Comment #2 from William Tang ---
(In reply to Andrew Pinski from comment #1)
> Works for me for a cross from Linux:
> [apinski@xeond2 upstream-full-cross]$ ./install/bin/aarch64-linux-gnu-gcc
> -print-prog-name=ld
> /bajas/pinskia/src/upstre
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113648
Bug ID: 113648
Summary: Cross compiler cannot find cross binutils on macOS
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compon
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106088
--- Comment #4 from William Tang ---
Okay, the '=' before search dir denotes sysroot replacement
(https://sourceware.org/binutils/docs/ld/Options.html), so the configuration of
ld should be correct. Anyway, it should be a binutils issue.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106088
--- Comment #3 from William Tang ---
Thanks, you are right, somehow, the ld of binutils has the wrong default
SEARCH_DIR:
[william@NoteBook ~]$ arm-linux-gnueabihf-ld --verbose | grep SEARCH
SEARCH_DIR("/usr/lib/binutils/arm-linux-gnueabihf");
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106088
--- Comment #1 from William Tang ---
The mentioned libraries did exist in the cross compile environment. Compiling
with command "arm-linux-gnueabihf-gcc main.c
-Wl,-rpath-link,/usr/arm-linux-gnueabihf/usr/lib -larchive" works just fine.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106088
Bug ID: 106088
Summary: ld cannot find dependent libraries when cross
compiling
Product: gcc
Version: 10.2.0
Status: UNCONFIRMED
Severity: normal
Pri