aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar 陈小 刚 <shawn_chen@realsil.com.cn>2018-07-23 06:54:18 +0000
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-08-01 10:23:24 +0200
commit23c0e97b29afddff0a69dfc3406ad673e6a07cd8 (patch)
tree5301ba196f542c1b8b6607f59464818148c1b886
parentf9d70202c1e09a7a02645638762f60434fd73051 (diff)
downloadbuildroot-23c0e97b29afddff0a69dfc3406ad673e6a07cd8.tar.gz
buildroot-23c0e97b29afddff0a69dfc3406ad673e6a07cd8.tar.bz2
toolchain-external: anchor sysroot regex with /
Anchor the regex in toolchain_find_sysroot macro with a / to avoid unexpected substitution for Realtek mips toolchain, for which the libc.a path ends with 'mips-linux-uclibc/lib/libc.a'. Signed-off-by: 陈小 刚 <shawn_chen@realsil.com.cn> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--toolchain/toolchain-external/pkg-toolchain-external.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk
index baf719ad1f..e618aa7a09 100644
--- a/toolchain/toolchain-external/pkg-toolchain-external.mk
+++ b/toolchain/toolchain-external/pkg-toolchain-external.mk
@@ -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