Merge pull request #402 from friedkiwi/master
Fix incompatibility with latest mingw toolchain
This commit is contained in:
@@ -233,14 +233,14 @@ VPATH := $(EXPATH) . cpu \
|
|||||||
sound/resid-fp \
|
sound/resid-fp \
|
||||||
scsi video network network/slirp win
|
scsi video network network/slirp win
|
||||||
ifeq ($(X64), y)
|
ifeq ($(X64), y)
|
||||||
CPP := g++ -m64
|
TOOL_PREFIX := x86_64-w64-mingw32-
|
||||||
CC := gcc -m64
|
|
||||||
else
|
else
|
||||||
CPP := g++ -m32
|
TOOL_PREFIX := i686-w64-mingw32-
|
||||||
CC := gcc -m32
|
|
||||||
endif
|
endif
|
||||||
|
CPP := ${TOOL_PREFIX}g++
|
||||||
|
CC := ${TOOL_PREFIX}gcc
|
||||||
WINDRES := windres
|
WINDRES := windres
|
||||||
STRIP := strip
|
STRIP := strip
|
||||||
ifeq ($(ARM64), y)
|
ifeq ($(ARM64), y)
|
||||||
CPP := aarch64-w64-mingw32-g++
|
CPP := aarch64-w64-mingw32-g++
|
||||||
CC := aarch64-w64-mingw32-gcc
|
CC := aarch64-w64-mingw32-gcc
|
||||||
@@ -467,6 +467,10 @@ endif
|
|||||||
CFLAGS := $(WX_FLAGS) $(OPTS) $(DFLAGS) $(COPTIM) $(AOPTIM) \
|
CFLAGS := $(WX_FLAGS) $(OPTS) $(DFLAGS) $(COPTIM) $(AOPTIM) \
|
||||||
$(AFLAGS) -fomit-frame-pointer -mstackrealign -Wall \
|
$(AFLAGS) -fomit-frame-pointer -mstackrealign -Wall \
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
|
|
||||||
|
# Add freetyp2 references through pkgconfig
|
||||||
|
CFLAGS := $(CFLAGS) `pkg-config.exe --cflags freetype2`
|
||||||
|
|
||||||
CXXFLAGS := $(CFLAGS)
|
CXXFLAGS := $(CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
@@ -634,9 +638,15 @@ OBJ += $(EXOBJ)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
LIBS := -mwindows \
|
LIBS := -mwindows \
|
||||||
-lopenal.dll \
|
|
||||||
-lddraw -ldxguid -ld3d9 \
|
-lddraw -ldxguid -ld3d9 \
|
||||||
-lcomctl32 -lwinmm
|
-lcomctl32 -lwinmm
|
||||||
|
|
||||||
|
ifeq ($(STATIC), y)
|
||||||
|
LIBS += -lopenal -lole32
|
||||||
|
else
|
||||||
|
LIBS += -lopenal.dll
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(D2D), y)
|
ifeq ($(D2D), y)
|
||||||
LIBS += $(D2DLIB)
|
LIBS += $(D2DLIB)
|
||||||
endif
|
endif
|
||||||
@@ -663,6 +673,10 @@ ifeq ($(D3DX), y)
|
|||||||
LIBS += -ld3dx9
|
LIBS += -ld3dx9
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(STATIC), y)
|
||||||
|
LIBS += -static
|
||||||
|
endif
|
||||||
|
|
||||||
# Build module rules.
|
# Build module rules.
|
||||||
ifeq ($(AUTODEP), y)
|
ifeq ($(AUTODEP), y)
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
|
Reference in New Issue
Block a user