diff --git a/GNUmakefile b/GNUmakefile index dfc9f69a..3d560661 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -332,6 +332,22 @@ ifeq ($(IS_ARMV8),1) endif endif +# PowerPC and PowerPC-64 +ifeq ($(XLC_COMPILER),1) + # http://www-01.ibm.com/support/docview.wss?uid=swg21007500 + ifeq ($(findstring -qrtti,$(CXXFLAGS)),) + CXXFLAGS += -qrtti + endif + # -fPIC causes link errors dues to unknown option + ifneq ($(findstring -fPIC,$(CXXFLAGS)),) + CXXFLAGS := $(CXXFLAGS:-fPIC=-qpic) + endif + # Warnings and intermittent failures on early IBM XL C/C++ + ifneq ($(findstring -O3,$(CXXFLAGS)),) + CXXFLAGS := $(CXXFLAGS:-O3=-O2) + endif +endif + endif # IS_X86 ########################################################### @@ -352,17 +368,6 @@ ifeq ($(XLC_COMPILER)$(IS_ARM32),00) endif endif -ifeq ($(XLC_COMPILER),1) - # http://www-01.ibm.com/support/docview.wss?uid=swg21007500 - ifeq ($(findstring -qrtti,$(CXXFLAGS)),) - CXXFLAGS += -qrtti - endif - # -fPIC causes link errors dues to unknown option - ifneq ($(findstring -fPIC,$(CXXFLAGS)),) - CXXFLAGS := $(CXXFLAGS:-fPIC=-qpic) - endif -endif - # For SunOS, create a Mapfile that allows our object files # to contain additional bits (like SSE4 and AES on old Xeon) # http://www.oracle.com/technetwork/server-storage/solaris/hwcap-modification-139536.html