defs.mk: Give up C linkage for C++ linkage

- Link with GPP instead of CC

  - Add -shared-libgcc to linker flags, which (I think) is redundant
    to using g++ instead of gcc
    TODO: clean this up, together with either going back to gcc or kicking out -lstdc++, too
This commit is contained in:
Jan Lindemann 2007-08-02 18:55:58 +00:00 committed by Jan Lindemann
commit e20bfcec4f

View file

@ -79,10 +79,12 @@ STRIP = $(CROSS_TOOL_BIN_PREFIX)strip
LDFLAGS += -lws2_32
USE_GFILTER = false
MS_LD ?= wine $(HOME)/local/mingw/packages/msvcpp/bin/LIB.EXE
LD = $(GPP)
else
GCC = gcc
GPP = g++
STRIP = strip
LD = $(GPP)
endif
YTOOLS_DIR = $(MODDIR)
@ -468,6 +470,7 @@ endif
ifeq ($(USE_EXCEPTIONS_IN_C),true)
CFLAGS += -fexceptions
LDFLAGS += -shared-libgcc
endif
ifeq ($(STRIP_SYMBOLS),true)