Fix libnx compilation

This commit is contained in:
Vladimir Serbinenko 2020-03-05 21:04:24 +01:00
parent 0ba1db4142
commit fe500b789a
2 changed files with 4 additions and 2 deletions

View File

@ -322,7 +322,9 @@ else ifeq ($(platform), libnx)
include $(DEVKITPRO)/libnx/switch_rules
TARGET := $(TARGET_NAME)_libretro_$(platform).a
PLATFORM_DEFINES += -I$(LIBNX)/include/ -specs=$(LIBNX)/switch.specs
PLATFORM_DEFINES += -D__SWITCH__ -DHAVE_LIBNX -DARM -march=armv8-a -mtune=cortex-a57 -mtp=soft
PLATFORM_DEFINES += -D__SWITCH__ -DHAVE_LIBNX -DARM -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIC
CFLAGS += -fPIC
CXXFLAGS += -fPIC
STATIC_LINKING = 1
HAVE_COMPAT = 1

View File

@ -109,7 +109,7 @@ void archGlobFree(ArchGlob* globHandle)
#else
#include "ArchGlob.h"
#if defined(PSP) || defined(__CELLOS_LV2__) || defined(ANDROID) || defined(WIIU) || defined(_XBOX) || defined(VITA) || defined(_3DS)
#if defined(PSP) || defined(__CELLOS_LV2__) || defined(ANDROID) || defined(WIIU) || defined(_XBOX) || defined(VITA) || defined(_3DS) || defined(__SWITCH__)
/* TODO/FIXME - might want to turn this into more generic define that we
* flick on for consoles/portables */
#include "psp/diet-glob.h"