From 3ef3525ecba00907c584729dd77cae936372c4f0 Mon Sep 17 00:00:00 2001 From: mittorn Date: Mon, 3 Oct 2016 13:53:11 +0000 Subject: [PATCH] Fix makefile --- metamod/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metamod/Makefile b/metamod/Makefile index 5ed3a71..048686d 100644 --- a/metamod/Makefile +++ b/metamod/Makefile @@ -119,8 +119,10 @@ ifeq "$(HOST)" "cygwin" else ifeq "$(TARGETTYPE)" "amd64" CC=gcc -m64 + CXX=g++ -m64 else CC=gcc -m32 + CXX=g++ -m32 endif endif @@ -248,7 +250,7 @@ $(STLOBJ): CFLAGS += -Wno-error # linux .so compile commands DO_CC_LINUX=$(CC) $(CFLAGS) -fPIC $(INCLUDEDIRS) -o $@ -c $< $(FILTER) -LINK_LINUX=$(CC) $(CFLAGS) -shared -ldl -lm -static-libgcc $(EXTRA_LINK) $(OBJ_LINUX) -o $@ +LINK_LINUX=$(CXX) $(CFLAGS) -shared -ldl -lm -static-libstdc++ -static-libgcc $(EXTRA_LINK) $(OBJ_LINUX) -o $@ # sort by date #SRCFILES := $(shell ls -t $(SRCFILES))