Skip to content

Commit

Permalink
Fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Oct 3, 2016
1 parent 310d893 commit 3ef3525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metamod/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 3ef3525

Please sign in to comment.