X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile.libretro;h=223ba9f9009901bc59f06c578049f846fd97709a;hp=d566e23a5a1eeea77a4edb5f1b8cdd8ec6046f79;hb=afec9d44d1170fd6391528f4985211ffb00e8bea;hpb=003cfc63c69b3e900de768317354dfb80bbf6a55 diff --git a/Makefile.libretro b/Makefile.libretro index d566e23a..223ba9f9 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 @@ -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