mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 22:40:38 +01:00
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:
parent
0affdb8333
commit
e20bfcec4f
1 changed files with 3 additions and 0 deletions
|
|
@ -79,10 +79,12 @@ STRIP = $(CROSS_TOOL_BIN_PREFIX)strip
|
||||||
LDFLAGS += -lws2_32
|
LDFLAGS += -lws2_32
|
||||||
USE_GFILTER = false
|
USE_GFILTER = false
|
||||||
MS_LD ?= wine $(HOME)/local/mingw/packages/msvcpp/bin/LIB.EXE
|
MS_LD ?= wine $(HOME)/local/mingw/packages/msvcpp/bin/LIB.EXE
|
||||||
|
LD = $(GPP)
|
||||||
else
|
else
|
||||||
GCC = gcc
|
GCC = gcc
|
||||||
GPP = g++
|
GPP = g++
|
||||||
STRIP = strip
|
STRIP = strip
|
||||||
|
LD = $(GPP)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
YTOOLS_DIR = $(MODDIR)
|
YTOOLS_DIR = $(MODDIR)
|
||||||
|
|
@ -468,6 +470,7 @@ endif
|
||||||
|
|
||||||
ifeq ($(USE_EXCEPTIONS_IN_C),true)
|
ifeq ($(USE_EXCEPTIONS_IN_C),true)
|
||||||
CFLAGS += -fexceptions
|
CFLAGS += -fexceptions
|
||||||
|
LDFLAGS += -shared-libgcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(STRIP_SYMBOLS),true)
|
ifeq ($(STRIP_SYMBOLS),true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue