summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-01-02 12:37:09 -0600
committerAllan McRae <allan@archlinux.org>2014-01-06 14:38:50 +1000
commitbad86247f74c181f9ae2e01fc71d5289f08f3bc3 (patch)
tree18018690aac02431173e6f7e8ced1ac5400ceeac
parente25afaf673f8be96a05ad1ed68e3bedaf1f88585 (diff)
downloadpacman-bad86247f74c181f9ae2e01fc71d5289f08f3bc3.tar.xz
Remove -fgnu89-inline from compile options
This was a hack done by me in commit d8e88aa0175fd back in 2007 that is no longer necessary, given a sufficiently smart compiler and one that supports the inline keyword. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--configure.ac2
-rw-r--r--lib/libalpm/Makefile.am3
-rw-r--r--m4/acinclude.m420
3 files changed, 0 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac
index cfcc8d1f..8a7e9d42 100644
--- a/configure.ac
+++ b/configure.ac
@@ -316,8 +316,6 @@ AC_CHECK_MEMBERS([struct statfs.f_flags],,,[[#include <sys/param.h>
# Check if we can use symbol visibility support in GCC
GCC_VISIBILITY_CC
-# Check if we have -fgnu89-inline flag
-GCC_GNU89_INLINE_CC
# Host-dependant definitions
INODECMD="stat -c '%i %n'"
diff --git a/lib/libalpm/Makefile.am b/lib/libalpm/Makefile.am
index 171bc46e..67be2b1d 100644
--- a/lib/libalpm/Makefile.am
+++ b/lib/libalpm/Makefile.am
@@ -18,9 +18,6 @@ else
AM_CFLAGS += -fvisibility=internal
endif
endif
-if ENABLE_GNU89_INLINE_CC
-AM_CFLAGS += -fgnu89-inline
-endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libalpm.pc
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
index 294507e2..15bb31e8 100644
--- a/m4/acinclude.m4
+++ b/m4/acinclude.m4
@@ -87,26 +87,6 @@ AC_DEFUN([GCC_VISIBILITY_CC],[
fi
])
-dnl GCC_GNU89_INLINE_CC
-dnl checks -fgnu89-inline with the C compiler, if it exists then defines
-dnl ENABLE_GNU89_INLINE_CC in both configure script and Makefiles
-AC_DEFUN([GCC_GNU89_INLINE_CC],[
- AC_LANG_ASSERT(C)
- if test "X$CC" != "X"; then
- AC_CACHE_CHECK([for -fgnu89-inline],
- gnu89_inline_cv_cc,
- [ gnu89_inline_old_cflags="$CFLAGS"
- CFLAGS="$CFLAGS -fgnu89-inline"
- AC_TRY_COMPILE(,, gnu89_inline_cv_cc=yes, gnu89_inline_cv_cc=no)
- CFLAGS="$gnu89_inline_old_cflags"
- ])
- if test $gnu89_inline_cv_cc = yes; then
- AC_DEFINE([ENABLE_GNU89_INLINE_CC], 1, [Define if gnu89 inlining semantics should be used.])
- fi
- AM_CONDITIONAL([ENABLE_GNU89_INLINE_CC], test "x$gnu89_inline_cv_cc" = "xyes")
- fi
-])
-
dnl CFLAGS_ADD(PARAMETER, VARIABLE)
dnl Adds parameter to VARIABLE if the compiler supports it. For example,
dnl CFLAGS_ADD([-Wall],[WARN_FLAGS]).