From eb8645b6ead5ea9d4a9c5eee702b6bb2625b9b6c Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 25 Oct 2014 10:17:15 +0000 Subject: [PATCH] Update Makefile.common to work with devkitPPC r27. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4684 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index 1f7a5ee55..a7bdfe78e 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -429,11 +429,17 @@ ifneq (0,$(RELEASE)) ifeq (0,$(CLANG)) COMMONFLAGS += -funswitch-loops ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \< 4))) - LTO=0 + override LTO=0 endif ifeq (1,$(strip $(shell expr $(GCC_MAJOR) = 4))) - ifeq (1,$(strip $(shell expr $(GCC_MINOR) \< 6))) - LTO=0 + ifeq ($(PLATFORM),WII) + ifeq (1,$(strip $(shell expr $(GCC_MINOR) \< 8))) + override LTO=0 + endif + else + ifeq (1,$(strip $(shell expr $(GCC_MINOR) \< 6))) + override LTO=0 + endif endif endif endif @@ -968,9 +974,9 @@ endif ifneq ($(PLATFORM),WINDOWS) ifneq ($(PLATFORM),WII) LIBS+= -ldl - endif - ifneq ($(PLATFORM),DARWIN) - LIBS+= -pthread + ifneq ($(PLATFORM),DARWIN) + LIBS+= -pthread + endif endif endif