This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello! #v+ $ gcc --sysroot=[...] [...] /usr/bin/ld: this linker was not configured to use sysroots collect2: ld returned 1 exit status #v- Okay, fine, it's also documented that way: #v+ @kindex --sysroot @item --sysroot=@var{directory} Use @var{directory} as the location of the sysroot, overriding the configure-time default. This option is only supported by linkers that were configured using @option{--with-sysroot}. #v- But now my question is: why? Why am I not allowed to use it unconditionally? I have the following use case in mind: build glibc and install it using ``make prefix=[...]/test-install install'' and then use ``gcc --sysroot=[...] [...]'' to build against that glibc. For GCC proper this seems to be working: the header files are read from `[...]/test-install/'. But why is GLD special? Regards, Thomas
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |