X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile.libretro;fp=Makefile.libretro;h=cbebc5dfafced6115f408bd4a1bcae4ffc0a3e20;hp=d566e23a5a1eeea77a4edb5f1b8cdd8ec6046f79;hb=e230dbf6ca642eb6cc660e5d581fa4d16a85934b;hpb=4da64aea132e752bfea9448238599653e741b465 diff --git a/Makefile.libretro b/Makefile.libretro index d566e23a..cbebc5df 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