[Buildroot] [Bug 851] Add option to specify --sysroot value for external toolchain

bugzilla at busybox.net bugzilla at busybox.net
Sun Apr 4 21:18:38 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=851





--- Comment #7 from Yann E. MORIN <yann.morin.1998 at anciens.enib.fr>  2010-04-04 21:18:38 UTC ---
Grant,

[wrt sysroot]
> Isn't it always going to be "$(BR2_TOOLCHAIN_EXTERNAL_PATH)/.."?

IIRC, $(BR2_TOOLCHAIN_EXTERNAL_PATH) is the place where to find the
executables, eg. target-gcc et al.

So, no, the sysroot should not be in $(BR2_TOOLCHAIN_EXTERNAL_PATH)/.. That
would have been the place to find target includes/libraries for the old,
non-sysroot case.

There is no way to know where the sysroot is, except by asking gcc where it was
previously installed into, subtract that from the configured sysroot prefix,
and re-add the current toolchain prefix.

Of course, that rules out a toolchain in which the sysroot was configured
out-side the gcc prefix, in which case I have absolutely no clue what could
happen if the toolchain gets relocated...


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the buildroot mailing list