summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-01-08 14:38:13 (GMT)
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-02 17:17:03 (GMT)
commit443827f24e85d32c8e12856a1910e98177e36fbb (patch)
treea81de722937aa1aa492c2df2202c15db22dbdc37
parentfb544738afe54575997056bc1f1e95923416ebd0 (diff)
downloadbuild-443827f24e85d32c8e12856a1910e98177e36fbb.zip
build-443827f24e85d32c8e12856a1910e98177e36fbb.tar.gz
build-443827f24e85d32c8e12856a1910e98177e36fbb.tar.bz2
clang: fix linking
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--core/clang/HOST_x86_common.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/clang/HOST_x86_common.mk b/core/clang/HOST_x86_common.mk
index d961aac..e8b4252 100644
--- a/core/clang/HOST_x86_common.mk
+++ b/core/clang/HOST_x86_common.mk
@@ -22,7 +22,11 @@ CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CPPFLAGS := \
-isystem toolchain/headers/clang
CLANG_CONFIG_x86_LINUX_HOST_EXTRA_LDFLAGS := \
- --gcc-toolchain=toolchain/gcc/host/install
+ --gcc-toolchain=toolchain/gcc/host/install \
+ -Btoolchain/gcc/host/install/x86_64-linux/bin \
+ -Btoolchain/gcc/host/install/lib/gcc/x86_64-linux/4.9 \
+ -Ltoolchain/gcc/host/install/lib/gcc/x86_64-linux/4.9 \
+ -Ltoolchain/gcc/host/install/lib64
else
@@ -31,7 +35,12 @@ CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CPPFLAGS := \
-isystem toolchain/headers/clang
CLANG_CONFIG_x86_LINUX_HOST_EXTRA_LDFLAGS := \
- --gcc-toolchain=toolchain/gcc/host/install
+ --gcc-toolchain=toolchain/gcc/host/install \
+ -Btoolchain/gcc/host/install/x86_64-linux/bin \
+ -Btoolchain/gcc/host/install/lib/gcc/x86_64-linux/4.9/32 \
+ -Ltoolchain/gcc/host/install/lib/gcc/x86_64-linux/4.9/32 \
+ -Ltoolchain/gcc/host/install/lib32
+
endif
endif # Linux