mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +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
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue