summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2020-04-28 23:48:40 +0100
committerJames Le Cuirot <chewi@gentoo.org>2020-04-28 23:55:06 +0100
commit6c3a76a2952c7aa6bdb0dccf7dcd13e3a4faf1b7 (patch)
tree695c8e3fc4e7ef6bed2a3e866bb79d1528edbd9d /games-emulation/advancemame/files/advancemame-3.9-blank-flags.patch
parentgames-emulation/advancemame: Locate nasm with var instead of symlink (diff)
downloadgentoo-6c3a76a2952c7aa6bdb0dccf7dcd13e3a4faf1b7.tar.gz
gentoo-6c3a76a2952c7aa6bdb0dccf7dcd13e3a4faf1b7.tar.bz2
gentoo-6c3a76a2952c7aa6bdb0dccf7dcd13e3a4faf1b7.zip
games-emulation/advancemame: Fix autover.sh error, improve src_install
The nasty src_install hasn't changed much since 2004 so I've sent some long overdue patches upstream to make things better going forwards. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-emulation/advancemame/files/advancemame-3.9-blank-flags.patch')
-rw-r--r--games-emulation/advancemame/files/advancemame-3.9-blank-flags.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/games-emulation/advancemame/files/advancemame-3.9-blank-flags.patch b/games-emulation/advancemame/files/advancemame-3.9-blank-flags.patch
new file mode 100644
index 00000000000..68cfa62f1ca
--- /dev/null
+++ b/games-emulation/advancemame/files/advancemame-3.9-blank-flags.patch
@@ -0,0 +1,32 @@
+From f306234fbaa6bd3fbcb75ebe5e3b318a9fc1c5f0 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Sat, 25 Apr 2020 11:40:18 +0100
+Subject: [PATCH] Don't use auto CFLAGS/LDFLAGS if they are set but blank
+
+Explicitly blank flags are valid.
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index f8ba989..330959c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -82,12 +82,12 @@ case "$build" in
+ esac
+ AC_SUBST([CONF_BUILD],[$ac_build])
+
+-if test -z "$CFLAGS" ; then
++if test -z "${CFLAGS+set}" ; then
+ ac_auto_cflags=yes
+ else
+ ac_auto_cflags=no
+ fi
+-if test -z "$LDFLAGS" ; then
++if test -z "${LDFLAGS+set}" ; then
+ ac_auto_ldflags=yes
+ else
+ ac_auto_ldflags=no
+--
+2.26.0
+