Commit feb4c8b0 authored by Steel01's avatar Steel01
Browse files

libretro: allow mingw cross compile

parent 6b241974
...@@ -7,14 +7,14 @@ LIB68K = $(BASEDIR)/M68000 ...@@ -7,14 +7,14 @@ LIB68K = $(BASEDIR)/M68000
LIBGBZ = $(BASEDIR)/GBZ80 LIBGBZ = $(BASEDIR)/GBZ80
PRIVATE = $(BASEDIR)/Private PRIVATE = $(BASEDIR)/Private
CXX = g++ CXX ?= g++
CC = gcc CC ?= gcc
CPP = cpp CPP ?= cpp
MOC = moc MOC ?= moc
SDT2GAS = perl $(EMULIB)/Tools/sdt2gas.pl SDT2GAS ?= perl $(EMULIB)/Tools/sdt2gas.pl
CFLAGS = -I. -I.. -I$(EMULIB) CFLAGS += -I. -I.. -I$(EMULIB)
DEFINES = -DZLIB DEFINES += -DZLIB
LIBS = -lz LIBS += -lz
# EMULib sound, console, and other utility functions # EMULib sound, console, and other utility functions
OBJECTS = $(EMULIB)/EMULib.o $(EMULIB)/Sound.o \ OBJECTS = $(EMULIB)/EMULib.o $(EMULIB)/Sound.o \
......
...@@ -472,8 +472,8 @@ else ifneq (,$(findstring windows_msvc2017,$(platform))) ...@@ -472,8 +472,8 @@ else ifneq (,$(findstring windows_msvc2017,$(platform)))
else else
TARGET := $(TARGET_NAME)_libretro.dll TARGET := $(TARGET_NAME)_libretro.dll
CC = gcc CC ?= gcc
CC_AS = gcc CC_AS ?= gcc
SHARED := -shared -static-libgcc -static-libstdc++ -Wl,-no-undefined -Wl,-version-script=link.T SHARED := -shared -static-libgcc -static-libstdc++ -Wl,-no-undefined -Wl,-version-script=link.T
endif endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment