mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
SDL: Clean up GCC 4.7 test so it's the same path on all targets (nw)
This commit is contained in:
parent
7aa2b15371
commit
994de882e9
@ -280,17 +280,6 @@ ifeq ($(BASE_TARGETOS),)
|
||||
$(error $(TARGETOS) not supported !)
|
||||
endif
|
||||
|
||||
#-------------------------------------------------
|
||||
# GCC 4.7 workaround (discrete audio needs type-safe rewrite to fix this for real)
|
||||
#-------------------------------------------------
|
||||
|
||||
ifneq ($(BASE_TARGETOS),win32)
|
||||
CCVERS = $(shell gcc --version)
|
||||
ifneq (,$(findstring 4.7,$(CCVERS)))
|
||||
CCOMFLAGS += -Wno-narrowing -Wno-attributes
|
||||
endif
|
||||
endif
|
||||
|
||||
#-------------------------------------------------
|
||||
# object and source roots
|
||||
#-------------------------------------------------
|
||||
@ -355,6 +344,16 @@ INCPATH += -include $(SDLSRC)/sdlprefix.h
|
||||
|
||||
SDLOS_TARGETOS = $(BASE_TARGETOS)
|
||||
|
||||
#-------------------------------------------------
|
||||
# TEST_GCC for GCC version-specific stuff
|
||||
#-------------------------------------------------
|
||||
|
||||
TEST_GCC = $(shell gcc --version)
|
||||
|
||||
ifeq ($(findstring 4.7,$(TEST_GCC)),4.7)
|
||||
CCOMFLAGS += -Wno-narrowing -Wno-attributes
|
||||
endif
|
||||
|
||||
#-------------------------------------------------
|
||||
# Unix
|
||||
#-------------------------------------------------
|
||||
@ -469,14 +468,10 @@ endif
|
||||
# Static linking
|
||||
|
||||
LDFLAGS += -static-libgcc
|
||||
TEST_GCC = $(shell gcc --version)
|
||||
ifeq ($(findstring 4.4,$(TEST_GCC)),)
|
||||
#if we use new tools
|
||||
LDFLAGS += -static-libstdc++
|
||||
endif
|
||||
ifeq ($(findstring 4.7,$(TEST_GCC)),4.7)
|
||||
CCOMFLAGS += -Wno-narrowing -Wno-attributes
|
||||
endif
|
||||
LIBS += -lSDL.dll
|
||||
LIBS += -luser32 -lgdi32 -lddraw -ldsound -ldxguid -lwinmm -ladvapi32 -lcomctl32 -lshlwapi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user