From 93b9f6446b92e1940703dff732436b1c39c16b7f Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 8 Sep 2013 11:14:35 +0200 Subject: tested and added support for 'clang' LLVM C frontend --- makefiles/gmake/compiler.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'makefiles/gmake/compiler.mk') 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) -- cgit v1.2.3-54-g00ecf