GCC switches required to use custom-built newlib

Schwarz, Konrad konrad.schwarz@siemens.com
Fri Mar 9 16:00:00 GMT 2018


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



More information about the Newlib mailing list