From: <man...@us...> - 2014-10-23 19:50:18
|
Revision: 4478 http://sourceforge.net/p/modplug/code/4478 Author: manxorist Date: 2014-10-23 19:50:04 +0000 (Thu, 23 Oct 2014) Log Message: ----------- [New] build: Add ANCIENT=1 option to Makefile that adds support for older pre-C++0x GCC versions. Modified Paths: -------------- trunk/OpenMPT/Makefile trunk/OpenMPT/build/make/Makefile.config.gcc Modified: trunk/OpenMPT/Makefile =================================================================== --- trunk/OpenMPT/Makefile 2014-10-23 19:41:50 UTC (rev 4477) +++ trunk/OpenMPT/Makefile 2014-10-23 19:50:04 UTC (rev 4478) @@ -46,6 +46,7 @@ # OPTIMIZE=1 Build optimized binaries # TEST=1 Include test suite in default target. # ONLY_TEST=0 Only build the test suite. +# ANCIENT=0 Use a pre-C++0x compiler (i.e. GCC before 4.3) # # # Build flags for libopenmpt (provide on each `make` invocation) @@ -127,6 +128,7 @@ OPTIMIZE=1 TEST=1 ONLY_TEST=0 +ANCIENT=0 SOSUFFIX=.so Modified: trunk/OpenMPT/build/make/Makefile.config.gcc =================================================================== --- trunk/OpenMPT/build/make/Makefile.config.gcc 2014-10-23 19:41:50 UTC (rev 4477) +++ trunk/OpenMPT/build/make/Makefile.config.gcc 2014-10-23 19:50:04 UTC (rev 4478) @@ -4,12 +4,21 @@ LD = g++ AR = ar +ifeq ($(ANCIENT),1) CPPFLAGS += +CXXFLAGS += -std=gnu++98 -fPIC +CFLAGS += -std=c99 -fPIC +LDFLAGS += +LDLIBS += -lm +ARFLAGS := rcs +else +CPPFLAGS += CXXFLAGS += -std=c++0x -fPIC CFLAGS += -std=c99 -fPIC LDFLAGS += LDLIBS += -lm ARFLAGS := rcs +endif EXESUFFIX= This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |