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, 4 insertions, 3 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index fd094b578..b93c15094 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -30,12 +30,13 @@
#
-CXX = @CC@
+CXX = @CXX@
+COMPILER = @COMPILER@
SYSTEM = @SYSTEM@
BUILDPATH = @BUILD_DIR@
SOCKETENGINE = @SOCKETENGINE@
CORECXXFLAGS = -fPIC -pipe -Iinclude -Wall -Wextra -Wfatal-errors -Wno-unused-parameter -Wshadow
-LDLIBS = -pthread -lstdc++
+LDLIBS = -lstdc++
CORELDFLAGS = -rdynamic -L. $(LDFLAGS)
PICLDFLAGS = -fPIC -shared -rdynamic $(LDFLAGS)
BASE = "$(DESTDIR)@BASE_DIR@"
@@ -49,7 +50,7 @@ INSTMODE_DIR = 0755
INSTMODE_BIN = 0755
INSTMODE_LIB = 0644
-@IFNEQ $(CXX) icc
+@IFNEQ $(COMPILER) icc
CORECXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute
@ENDIF