Skip to content

Commit bad8624

Browse files
toofishesallanmcrae
authored andcommitted
Remove -fgnu89-inline from compile options
This was a hack done by me in commit d8e88aa 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 <[email protected]> Signed-off-by: Allan McRae <[email protected]>
1 parent e25afaf commit bad8624

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

configure.ac

-2
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,6 @@ AC_CHECK_MEMBERS([struct statfs.f_flags],,,[[#include <sys/param.h>
316316

317317
# Check if we can use symbol visibility support in GCC
318318
GCC_VISIBILITY_CC
319-
# Check if we have -fgnu89-inline flag
320-
GCC_GNU89_INLINE_CC
321319

322320
# Host-dependant definitions
323321
INODECMD="stat -c '%i %n'"

lib/libalpm/Makefile.am

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ else
1818
AM_CFLAGS += -fvisibility=internal
1919
endif
2020
endif
21-
if ENABLE_GNU89_INLINE_CC
22-
AM_CFLAGS += -fgnu89-inline
23-
endif
2421

2522
pkgconfigdir = $(libdir)/pkgconfig
2623
pkgconfig_DATA = libalpm.pc

m4/acinclude.m4

-20
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,6 @@ AC_DEFUN([GCC_VISIBILITY_CC],[
8787
fi
8888
])
8989

90-
dnl GCC_GNU89_INLINE_CC
91-
dnl checks -fgnu89-inline with the C compiler, if it exists then defines
92-
dnl ENABLE_GNU89_INLINE_CC in both configure script and Makefiles
93-
AC_DEFUN([GCC_GNU89_INLINE_CC],[
94-
AC_LANG_ASSERT(C)
95-
if test "X$CC" != "X"; then
96-
AC_CACHE_CHECK([for -fgnu89-inline],
97-
gnu89_inline_cv_cc,
98-
[ gnu89_inline_old_cflags="$CFLAGS"
99-
CFLAGS="$CFLAGS -fgnu89-inline"
100-
AC_TRY_COMPILE(,, gnu89_inline_cv_cc=yes, gnu89_inline_cv_cc=no)
101-
CFLAGS="$gnu89_inline_old_cflags"
102-
])
103-
if test $gnu89_inline_cv_cc = yes; then
104-
AC_DEFINE([ENABLE_GNU89_INLINE_CC], 1, [Define if gnu89 inlining semantics should be used.])
105-
fi
106-
AM_CONDITIONAL([ENABLE_GNU89_INLINE_CC], test "x$gnu89_inline_cv_cc" = "xyes")
107-
fi
108-
])
109-
11090
dnl CFLAGS_ADD(PARAMETER, VARIABLE)
11191
dnl Adds parameter to VARIABLE if the compiler supports it. For example,
11292
dnl CFLAGS_ADD([-Wall],[WARN_FLAGS]).

0 commit comments

Comments
 (0)