Fix build.

This commit is contained in:
Themaister 2012-06-10 00:54:07 +02:00
parent f48f8405a4
commit 15a37df2db

View File

@ -13,7 +13,7 @@ endif
ifeq ($(platform), unix) ifeq ($(platform), unix)
TARGET := libretro.so TARGET := libretro.so
fpic := -fPIC fpic := -fPIC
SHARED := -shared -Wl,-no-undefined -Wl,--version-script=link.T SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
ENDIANNESS_DEFINES := -DLSB_FIRST ENDIANNESS_DEFINES := -DLSB_FIRST
LDFLAGS += -pthread LDFLAGS += -pthread
FLAGS += -pthread -DHAVE_MKDIR FLAGS += -pthread -DHAVE_MKDIR
@ -28,7 +28,7 @@ else
TARGET := retro.dll TARGET := retro.dll
CC = gcc CC = gcc
CXX = g++ CXX = g++
SHARED := -shared -Wl,-no-undefined -Wl,--version-script=link.T SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
LDFLAGS += -static-libgcc -static-libstdc++ -lwinmm LDFLAGS += -static-libgcc -static-libstdc++ -lwinmm
ENDIANNESS_DEFINES := -DLSB_FIRST ENDIANNESS_DEFINES := -DLSB_FIRST
FLAGS += -DHAVE__MKDIR FLAGS += -DHAVE__MKDIR
@ -130,7 +130,7 @@ OBJECTS := $(SOURCES:.cpp=.o) $(SOURCES_C:.c=.o)
all: $(TARGET) all: $(TARGET)
LDFLAGS += $(fpic) -lz LDFLAGS += $(fpic) -lz $(SHARED)
FLAGS += -ffast-math -msse -msse2 -funroll-loops -O3 -g -Wall $(fpic) -fno-strict-overflow FLAGS += -ffast-math -msse -msse2 -funroll-loops -O3 -g -Wall $(fpic) -fno-strict-overflow
FLAGS += -I. -Imednafen -Imednafen/include -Imednafen/intl FLAGS += -I. -Imednafen -Imednafen/include -Imednafen/intl