diff options
author | midipix <writeonce@midipix.org> | 2015-10-31 15:03:15 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-10-31 15:03:15 -0400 |
commit | 2e94f1fa23fd1435f5816d28fed7391f60cb05de (patch) | |
tree | 4b3f7d0ff8e2255d6a21025081a3b6f220125580 /sysinfo/toolchain/clang.mk | |
parent | 9d0a309796778f61c9a3a284bbace09a563d5e9d (diff) | |
download | dalist-2e94f1fa23fd1435f5816d28fed7391f60cb05de.tar.bz2 dalist-2e94f1fa23fd1435f5816d28fed7391f60cb05de.tar.xz |
build system: fix support of CC, CPP, and CXX directly passed to configure.
Diffstat (limited to 'sysinfo/toolchain/clang.mk')
-rw-r--r-- | sysinfo/toolchain/clang.mk | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/sysinfo/toolchain/clang.mk b/sysinfo/toolchain/clang.mk index ae8b40c..3e4a795 100644 --- a/sysinfo/toolchain/clang.mk +++ b/sysinfo/toolchain/clang.mk @@ -7,9 +7,23 @@ else endif -CC = $(NATIVE_CC) $(CROSS_HOST_SPEC) -CPP = $(NATIVE_CC) $(CROSS_HOST_SPEC) -E -CXX = $(NATIVE_CC)++ $(CROSS_HOST_SPEC) +ifeq ($(USER_CC)x,x) + CC = $(NATIVE_CC) $(CROSS_HOST_SPEC) +else + CC = $(USER_CC) $(CROSS_HOST_SPEC) +endif + +ifeq ($(USER_CPP)x,x) + CPP = $(NATIVE_CC) $(CROSS_HOST_SPEC) -E +else + CPP = $(USER_CPP) $(CROSS_HOST_SPEC) -E +endif + +ifeq ($(USER_CXX)x,x) + CXX = $(NATIVE_CC)++ $(CROSS_HOST_SPEC) +else + CXX = $(USER_CXX) $(CROSS_HOST_SPEC) +endif AS = $(CROSS_COMPILE)as |