From e00d1f01e46e1fadf254021867fb8402dfe0fd54 Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Mon, 27 May 2019 19:19:01 +1000 Subject: [PATCH] Makefile.wiiu: Remove -mwup (removed from devkitPPC) See https://github.com/devkitPro/gcc/commit/8903cf8ec03f30497eba907b7f0209abd9797a99 This got removed from devkitPPC a while ago, this should allow people on newer toolchains to build. These changes also need to be done to all the cores. --- Makefile.wiiu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.wiiu b/Makefile.wiiu index 1dc465d643..25467d7011 100644 --- a/Makefile.wiiu +++ b/Makefile.wiiu @@ -157,8 +157,7 @@ endif OBJ := $(addprefix $(BUILD_DIR)/,$(OBJ)) -#todo: remove -DWIIU and use the built-in macros instead (HW_WUP or __wiiu__). -DEFINES += -DWIIU -DMSB_FIRST -D__WUT__ +DEFINES += -DWIIU -DMSB_FIRST -D__WUT__ -DHW_WUP -D__wiiu__ #DEFINES += -D_GNU_SOURCE DEFINES += -DHAVE_MAIN DEFINES += -DRARCH_CONSOLE @@ -207,7 +206,7 @@ INCDIRS += -Iwiiu/include INCDIRS += -I$(DEVKITPRO)/portlibs/ppc/include LIBDIRS := -L. -L$(DEVKITPRO)/portlibs/ppc/lib -CFLAGS := -mwup -mcpu=750 -meabi -mhard-float +CFLAGS := -mcpu=750 -meabi -mhard-float LDFLAGS := ifeq ($(DEBUG), 1) @@ -221,6 +220,7 @@ LDFLAGS := $(CFLAGS) ASFLAGS := $(CFLAGS) -mregnames CFLAGS += -ffast-math -Werror=implicit-function-declaration +CFLAGS += -ffunction-sections -fdata-sections #CFLAGS += -fomit-frame-pointer -mword-relocations #CFLAGS += -Wall