* configure.in: Check for no-common compiler flag (OS-X fix from

Benjamin Reed <ranger at befunk dot com>)
This commit is contained in:
John (J5) Palmieri 2006-09-05 21:51:58 +00:00
parent ee6964d6a0
commit cb51809e9c
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-09-05 John (J5) Palmieri <johnp@redhat.com>
* configure.in: Check for no-common compiler flag (OS-X fix from
Benjamin Reed <ranger at befunk dot com>)
2006-09-01 John (J5) Palmieri <johnp@redhat.com>
* tools/dbus-launch.c: Add a sigterm handler (patch from Frederic Crozat

View file

@ -165,6 +165,14 @@ if test "x$GCC" = "xyes"; then
;;
esac
case " $CFLAGS " in
*[\ \ ]-fno-common[\ \ ]*) ;;
*) if cc_supports_flag -fno-common; then
CFLAGS="$CFLAGS -fno-common"
fi
;;
esac
if test "x$enable_ansi" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-ansi[\ \ ]*) ;;