/usr/bin/ld: this linker was not configured to use sysroots
Thomas Schwinge
tschwinge@gnu.org
Sat Feb 17 18:30:00 GMT 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20070217/9ebf8156/attachment.sig>
More information about the Binutils
mailing list