summaryrefslogtreecommitdiff
path: root/user/argp-standalone/gnu89-inline.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:40:46 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:40:46 -0500
commit26310cd455ee446af79dae44cd1a845df6d3794d (patch)
treea7de9cb0739f6c7d7af94d496f0b29a1cc00e3be /user/argp-standalone/gnu89-inline.patch
parent8bcd602eb7b573a1154eb4e826647491080ae2de (diff)
downloadpackages-26310cd455ee446af79dae44cd1a845df6d3794d.tar.gz
packages-26310cd455ee446af79dae44cd1a845df6d3794d.tar.bz2
packages-26310cd455ee446af79dae44cd1a845df6d3794d.tar.xz
packages-26310cd455ee446af79dae44cd1a845df6d3794d.zip
user/argp-standalone: pull in, fix up, fix license
Diffstat (limited to 'user/argp-standalone/gnu89-inline.patch')
-rw-r--r--user/argp-standalone/gnu89-inline.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/user/argp-standalone/gnu89-inline.patch b/user/argp-standalone/gnu89-inline.patch
new file mode 100644
index 000000000..71978eba5
--- /dev/null
+++ b/user/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"