Libretro: Fix Wii compiling by adding required -ffat-lto-objects
authorsaulfabreg Wii VC Project <saulfabregamboa@outlook.com>
Fri, 8 Mar 2024 18:32:10 +0000 (13:32 -0500)
committeririxxxx <31696370+irixxxx@users.noreply.github.com>
Sat, 9 Mar 2024 18:06:59 +0000 (19:06 +0100)
Otherwise when compiling the final dol will result in compilation errors because of missing Libretro dependencies.
(dirty, quick-fix) workaround for stop the compiler messages of "plugin needed to handle lto object"

Makefile.libretro

index 60e6bfd..d849be8 100644 (file)
@@ -276,7 +276,7 @@ else ifeq ($(platform), wii)
        TARGET := $(TARGET_NAME)_libretro_$(platform).a
        CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
        AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
-       CFLAGS += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float
+       CFLAGS += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -ffat-lto-objects
        STATIC_LINKING = 1
        STATIC_LINKING_LINK = 1