diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-17 21:23:14 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-17 21:23:29 +0100 |
commit | e80e2408d4e54999784338182527ec16949addd8 (patch) | |
tree | da387582912c3d0fc94d5d9f178523a2b97e8c7a /mk | |
parent | 2c564b6fc8d396c5b56eab073d5ac89fc6b3cce1 (diff) |
llvm: update to 4.0.0, allow to compile musl with it
Diffstat (limited to 'mk')
-rw-r--r-- | mk/vars.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index e017dee9e..7dcc756ee 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -102,8 +102,11 @@ endif ifeq ($(ADK_BUILD_COMPILER_LLVM),y) TARGET_CC:= clang --target=${GNU_TARGET_NAME} --sysroot=$(STAGING_TARGET_DIR) TARGET_CXX:= clang++ --target=${GNU_TARGET_NAME} --sysroot=$(STAGING_TARGET_DIR) +TARGET_LDFLAGS:= -fuse-ld=lld -stdlib=libc++ endif +# gcc specific +ifeq ($(ADK_BUILD_COMPILER_GCC),y) # for x86_64 x32 ABI we need to extend TARGET_CC/TARGET_CXX ifeq ($(ADK_TARGET_ABI_X32),y) TARGET_CC+= $(ADK_TARGET_ABI_CFLAGS) @@ -238,6 +241,9 @@ TARGET_CFLAGS+= -mxl-barrel-shift TARGET_CXXFLAGS+= -mxl-barrel-shift endif +endif +# end gcc specific + # add configured compiler flags for optimization TARGET_CFLAGS+= $(ADK_TARGET_CFLAGS_OPT) TARGET_CXXFLAGS+= $(ADK_TARGET_CFLAGS_OPT) |