summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/template/main.mk')
-rw-r--r--make/template/main.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 210e1a500..b24327e70 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -49,11 +49,14 @@ INSTMODE_DIR = 0755
INSTMODE_BIN = 0755
INSTMODE_LIB = 0644
-@IFEQ $(CC) icc
-@ELSE
+@IFNEQ $(CC) icc
CXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute
@ENDIF
+@IFNEQ $(SYSTEM) darwin
+ LDLIBS += -pthread
+@ENDIF
+
@IFEQ $(SYSTEM) linux
LDLIBS += -ldl -lrt
@ENDIF