notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4da64ae
)
libretro: try to prevent bad builds
author
notaz
<notasas@gmail.com>
Sat, 9 Jul 2016 23:09:08 +0000
(
02:09
+0300)
committer
notaz
<notasas@gmail.com>
Sat, 9 Jul 2016 23:09:08 +0000
(
02:09
+0300)
Makefile.libretro
patch
|
blob
|
blame
|
history
diff --git
a/Makefile.libretro
b/Makefile.libretro
index
d566e23
..
cbebc5d
100644
(file)
--- a/
Makefile.libretro
+++ b/
Makefile.libretro
@@
-182,6
+182,17
@@
MAIN_LDFLAGS += -shared
MAIN_LDLIBS += -lm -lz
EXTRA_LDFLAGS =
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
TARGET ?= libretro.so
PLATFORM = libretro
BUILTIN_GPU ?= peops