From e230dbf6ca642eb6cc660e5d581fa4d16a85934b Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 10 Jul 2016 02:09:08 +0300 Subject: libretro: try to prevent bad builds --- Makefile.libretro | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.libretro') diff --git a/Makefile.libretro b/Makefile.libretro index d566e23..cbebc5d 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -182,6 +182,17 @@ MAIN_LDFLAGS += -shared MAIN_LDLIBS += -lm -lz EXTRA_LDFLAGS = +# try to autodetect stuff for the lazy +ifndef ARCH +ARCH = $(shell $(CC) -dumpmachine | awk -F- '{print $$1}') +endif +ifndef HAVE_NEON +HAVE_NEON = $(shell $(CC) -E -dD - < /dev/null 2> /dev/null | grep -q __ARM_NEON__ && echo 1 || echo 0) +endif +ifeq ($(shell ld -v 2> /dev/null | awk '{print $$1}'),GNU) +MAIN_LDFLAGS += -Wl,--no-undefined +endif + TARGET ?= libretro.so PLATFORM = libretro BUILTIN_GPU ?= peops -- cgit v1.2.3 From 1e212a25c55c298490867c2ded029c82db1d2b9d Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 21 Sep 2016 02:07:16 +0300 Subject: drc: some vita and 3ds support not tested, mostly just guesswork --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.libretro') diff --git a/Makefile.libretro b/Makefile.libretro index cbebc5d..223ba9f 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -128,7 +128,7 @@ else ifeq ($(platform), qnx) DRC_CACHE_BASE = 0 BUILTIN_GPU = neon ARCH = arm - CFLAGS += -DBASE_ADDR_FIXED=0 -D__BLACKBERRY_QNX__ -marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp + CFLAGS += -D__BLACKBERRY_QNX__ -marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp ASFLAGS += -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp # ARM -- cgit v1.2.3