summaryrefslogtreecommitdiff
path: root/makefiles/gmake/compiler.mk
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2013-09-08 11:14:35 +0200
committerAndreas Baumann <abaumann@yahoo.com>2013-09-08 11:14:35 +0200
commit93b9f6446b92e1940703dff732436b1c39c16b7f (patch)
tree70743cb474de3a540e24e4103932a4ed81c38cbd /makefiles/gmake/compiler.mk
parente25b45bcddaaf55ce0ed4af12693c5a405b938f3 (diff)
downloadwolfbones-93b9f6446b92e1940703dff732436b1c39c16b7f.tar.gz
wolfbones-93b9f6446b92e1940703dff732436b1c39c16b7f.tar.bz2
tested and added support for 'clang' LLVM C frontend
Diffstat (limited to 'makefiles/gmake/compiler.mk')
-rw-r--r--makefiles/gmake/compiler.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk
index bde55a0..c2183d8 100644
--- a/makefiles/gmake/compiler.mk
+++ b/makefiles/gmake/compiler.mk
@@ -251,6 +251,12 @@ PTHREADS_LIBS =
endif
endif
+ifeq "$(COMPILER)" "clang"
+PTHREADS_CFLAGS = -D_REENTRANT -pthread
+PTHREADS_LDFLAGS = -pthread
+PTHREADS_LIBS =
+endif
+
endif
# set flags for position independend code (as required for shared libraries
@@ -298,6 +304,10 @@ endif
#endif
#endif
+ifeq "$(COMPILER)" "clang"
+SO_COMPILE_FLAGS =
+endif
+
ALL_CFLAGS = $(CFLAGS) $(COMPILE_FLAGS) $(PLATFORM_COMPILE_FLAGS) $(INCLUDE_DIRS) $(INCLUDE_CFLAGS) $(PTHREADS_CFLAGS)
ALL_LDFLAGS = $(LDFLAGS) $(INCLUDE_LDFLAGS) $(PTHREADS_LDFLAGS) $(LDFLAGS_NET) $(LDFLAGS_LT) $(LDFLAGS_DL)