aboutsummaryrefslogtreecommitdiffstats
path: root/main/argp-standalone/gnu89-inline.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-11 07:12:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-11 07:13:16 +0000
commit38b1d68577858507f8b3e503deb1076fd38b86fc (patch)
tree3963ef2c9fdce898ff87812b46e96a7b25c6cda6 /main/argp-standalone/gnu89-inline.patch
parent358126c981e2f0bbc86566d00909963ebfaf6c63 (diff)
downloadaports-38b1d68577858507f8b3e503deb1076fd38b86fc.tar.bz2
aports-38b1d68577858507f8b3e503deb1076fd38b86fc.tar.xz
main/argp-standalone: gcc5 build fix
Diffstat (limited to 'main/argp-standalone/gnu89-inline.patch')
-rw-r--r--main/argp-standalone/gnu89-inline.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/argp-standalone/gnu89-inline.patch b/main/argp-standalone/gnu89-inline.patch
new file mode 100644
index 0000000000..71978eba58
--- /dev/null
+++ b/main/argp-standalone/gnu89-inline.patch
@@ -0,0 +1,22 @@
+diff --git a/configure.ac b/configure.ac
+index 4658839..09f0267 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -79,16 +79,10 @@ AC_CHECK_DECLS([program_invocation_name, program_invocation_short_name],
+
+ # Set these flags *last*, or else the test programs won't compile
+ if test x$GCC = xyes ; then
+- # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
+- if "$CC" --version | grep '^2\.96$' 1>/dev/null 2>&1; then
+- true
+- else
+- CFLAGS="$CFLAGS -ggdb3"
+- fi
+ CFLAGS="$CFLAGS -Wall -W \
+ -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
+ -Waggregate-return \
+- -Wpointer-arith -Wbad-function-cast -Wnested-externs"
++ -Wpointer-arith -Wbad-function-cast -Wnested-externs -fgnu89-inline"
+ fi
+
+ CPPFLAGS="$CPPFLAGS -I$srcdir"