From 4caf7a167d159866479ea94d6b2d13c26ceb3e72 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Sat, 10 Feb 2024 10:46:26 +0100 Subject: [PATCH] Add fPIE to libnx target since it's necessary --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8b1c3a6..71be06c 100644 --- a/Makefile +++ b/Makefile @@ -201,7 +201,7 @@ else ifeq ($(platform), psl1ght) else ifeq ($(platform), libnx) include $(DEVKITPRO)/libnx/switch_rules TARGET := $(TARGET_NAME)_libretro_$(platform).a - CFLAGS += -O3 -fomit-frame-pointer -ffast-math -I$(DEVKITPRO)/libnx/include/ + CFLAGS += -O3 -fomit-frame-pointer -ffast-math -I$(DEVKITPRO)/libnx/include/ -fPIE CFLAGS += -specs=$(DEVKITPRO)/libnx/switch.specs CFLAGS += -D__SWITCH__ -DHAVE_LIBNX CFLAGS += -DARM -D__aarch64__=1 -march=armv8-a -mtune=cortex-a57 -mtp=soft -ffast-math