diff options
author | Karel Kočí <karel.koci@nic.cz> | 2019-04-03 13:44:23 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2019-04-03 13:44:23 +0200 |
commit | e840c2383394182b626c646115d7859b042a4158 (patch) | |
tree | bbe3089ae54be5ec67f349f0734da5fb9b8f8359 /argp-standalone/patches/002-gnu89-inline.patch | |
parent | c160c1f70d48f41ebfd84895f565d87976291071 (diff) | |
download | openwrt-personal-pkgs-e840c2383394182b626c646115d7859b042a4158.tar.gz openwrt-personal-pkgs-e840c2383394182b626c646115d7859b042a4158.tar.bz2 openwrt-personal-pkgs-e840c2383394182b626c646115d7859b042a4158.zip |
Add argp-standalone
Diffstat (limited to 'argp-standalone/patches/002-gnu89-inline.patch')
-rw-r--r-- | argp-standalone/patches/002-gnu89-inline.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/argp-standalone/patches/002-gnu89-inline.patch b/argp-standalone/patches/002-gnu89-inline.patch new file mode 100644 index 0000000..71978eb --- /dev/null +++ b/argp-standalone/patches/002-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" |