libretro, build fix for ngc/wii/wiiu
authorkub <derkub@gmail.com>
Sun, 11 Apr 2021 21:41:47 +0000 (23:41 +0200)
committerkub <derkub@gmail.com>
Sun, 11 Apr 2021 21:41:47 +0000 (23:41 +0200)
Makefile.libretro

index 6a18997..c989839 100644 (file)
@@ -254,6 +254,8 @@ else ifeq ($(platform), ngc)
        CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
        AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
        CFLAGS += -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
+       STATIC_LINKING = 1
+       NO_MMAP = 1
 
 # Nintendo Wii
 else ifeq ($(platform), wii)
@@ -261,6 +263,8 @@ else ifeq ($(platform), wii)
        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 -DBLARGG_BIG_ENDIAN=1 -D__ppc__
+       STATIC_LINKING = 1
+       NO_MMAP = 1
 
 # Nintendo Wii U
 else ifeq ($(platform), wiiu)
@@ -268,8 +272,10 @@ else ifeq ($(platform), wiiu)
        CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
        CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
        AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
-       COMMONFLAGS += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float -D__POWERPC__ -D__ppc__ -DMSB_FIRST -DWORDS_BIGENDIAN=1 -I./deps/include/
-       COMMONFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
+       CFLAGS += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float -D__POWERPC__ -D__ppc__ -DMSB_FIRST -DWORDS_BIGENDIAN=1
+       CFLAGS += -I./deps/include/ -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
+       STATIC_LINKING = 1
+       NO_MMAP = 1
 
 # Nintendo Switch (libtransistor)
 else ifeq ($(platform), switch)