mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
toolchain-external: fix find_sysroot
Commit 23c0e97b29
(toolchain-external: anchor sysroot regex with /)
tried to make the find-sysroot work more consistently, especially for
toolchains where the C library is located in a sub-directory, like the
"Realtek mips toolchain".
After that patch, the '/' that was trailing in the returned path got
removed now. This in turn breaks the Codesourcery toolchain.
We fix that by appending the now-missing trailing '/'.
Fixes:
http://autobuild.buildroot.net/results/9284d571668148febce23d96a9c0a97a6b2b43dc
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: 陈小 刚 <shawn_chen@realsil.com.cn>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
aa4474e999
commit
0de9a53a34
@ -331,7 +331,7 @@ endef
|
||||
#
|
||||
# And variations on these.
|
||||
define toolchain_find_sysroot
|
||||
$$(printf $(call toolchain_find_libc_a,$(1)) | sed -r -e 's:/(usr/)?lib(32|64)?([^/]*)?/([^/]*/)?libc\.a::')
|
||||
$$(printf $(call toolchain_find_libc_a,$(1)) | sed -r -e 's:/(usr/)?lib(32|64)?([^/]*)?/([^/]*/)?libc\.a:/:')
|
||||
endef
|
||||
|
||||
# Returns the lib subdirectory for the given compiler + flags (i.e
|
||||
|
Loading…
Reference in New Issue
Block a user