improved some version checks in makefiles / added TODOs (nw)
This commit is contained in:
parent
6e55330882
commit
093d2460fb
@ -436,12 +436,9 @@ SDLOS_TARGETOS = $(BASE_TARGETOS)
|
|||||||
# TEST_GCC for GCC version-specific stuff
|
# TEST_GCC for GCC version-specific stuff
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
|
||||||
|
# TODO: needs to use $(CC)
|
||||||
TEST_GCC = $(shell gcc --version)
|
TEST_GCC = $(shell gcc --version)
|
||||||
|
|
||||||
ifeq ($(findstring 4.7,$(TEST_GCC)),4.7)
|
|
||||||
CCOMFLAGS += -Wno-narrowing -Wno-attributes
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Ubuntu 12.10 GCC 4.7.2 autodetect
|
# Ubuntu 12.10 GCC 4.7.2 autodetect
|
||||||
ifeq ($(findstring 4.7.2-2ubuntu1,$(TEST_GCC)),4.7.2-2ubuntu1)
|
ifeq ($(findstring 4.7.2-2ubuntu1,$(TEST_GCC)),4.7.2-2ubuntu1)
|
||||||
GCC46TST = $(shell which g++-4.6 2>/dev/null)
|
GCC46TST = $(shell which g++-4.6 2>/dev/null)
|
||||||
@ -450,6 +447,11 @@ $(error Ubuntu 12.10 detected. Please install the gcc-4.6 and g++-4.6 packages)
|
|||||||
endif
|
endif
|
||||||
CC = @gcc-4.6
|
CC = @gcc-4.6
|
||||||
LD = @g++-4.6
|
LD = @g++-4.6
|
||||||
|
TEST_GCC = $(shell gcc-4.6 --version)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(findstring 4.7.,$(TEST_GCC)),4.7.)
|
||||||
|
CCOMFLAGS += -Wno-narrowing -Wno-attributes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
@ -253,8 +253,9 @@ CCOMFLAGS += -include $(WINSRC)/winprefix.h
|
|||||||
|
|
||||||
# ensure we statically link the gcc runtime lib
|
# ensure we statically link the gcc runtime lib
|
||||||
LDFLAGS += -static-libgcc
|
LDFLAGS += -static-libgcc
|
||||||
|
# TODO: needs to use $(CC)
|
||||||
TEST_GCC = $(shell gcc --version)
|
TEST_GCC = $(shell gcc --version)
|
||||||
ifeq ($(findstring 4.4,$(TEST_GCC)),)
|
ifeq ($(findstring 4.4.,$(TEST_GCC)),)
|
||||||
#if we use new tools
|
#if we use new tools
|
||||||
LDFLAGS += -static-libstdc++
|
LDFLAGS += -static-libstdc++
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user