diff options
author | notaz | 2016-07-10 02:09:08 +0300 |
---|---|---|
committer | notaz | 2016-07-10 02:09:08 +0300 |
commit | e230dbf6ca642eb6cc660e5d581fa4d16a85934b (patch) | |
tree | c713f51508887e3d6ff910bb358ce4cc5877ab3a /Makefile.libretro | |
parent | 4da64aea132e752bfea9448238599653e741b465 (diff) | |
download | pcsx_rearmed-e230dbf6ca642eb6cc660e5d581fa4d16a85934b.tar.gz pcsx_rearmed-e230dbf6ca642eb6cc660e5d581fa4d16a85934b.tar.bz2 pcsx_rearmed-e230dbf6ca642eb6cc660e5d581fa4d16a85934b.zip |
libretro: try to prevent bad builds
Diffstat (limited to 'Makefile.libretro')
-rw-r--r-- | Makefile.libretro | 11 |
1 files changed, 11 insertions, 0 deletions
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 |