This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
GCC switches required to use custom-built newlib
- From: "Schwarz, Konrad" <konrad dot schwarz at siemens dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Fri, 9 Mar 2018 16:00:09 +0000
- Subject: GCC switches required to use custom-built newlib
- Authentication-results: sourceware.org; auth=none
Hello
Assuming I have built my own version of newlib, how can a pre-built GCC be instructed (via command-line switches or environment variables) to link against that version? (I am interested in cross compilation).
I think that -sysroot is designed for this, but am not sure; xxx-gcc -print-search-dirs doesn't have = signs prefixing all the paths. Also, I probably need to explicitly link against $(xxx-gcc -print-libgcc-file-name), right?
Regards
Konrad