patches/dbus-02-fixconfigure.diff
author yippi
Mon, 06 Aug 2007 23:40:50 +0000
changeset 10278 f4767566e7d2
permissions -rw-r--r--
2007-08-07 Brian Cameron <[email protected]> * SUNWdbus.spec, base-specs/dbus.spec, base-specs/dbus-glib.spec, base-specs/dbus-python.spec, patches/dbus-02-fixconfigure.diff, patches/dbus-03-clearenv.diff: Bump D-Bus to 1.1.2, dbus-glib to 0.74, and dbus-python to 0.82.2. Fix symlink so it works when the D-Bus library is bumped to a new 3.x version and we don't have to update the symlink each time. * patches/dbus-02-daemndir.diff: Remove upstream patch.

--- dbus-1.1.2/configure.in-orig	2007-08-06 16:20:10.499290000 -0500
+++ dbus-1.1.2/configure.in	2007-08-06 16:24:59.104651000 -0500
@@ -243,31 +243,8 @@ else
   fi
 fi
 
-# Check for -Wl,--gc-sections
-AC_MSG_CHECKING([for ld that supports "-Wl,--gc-sections"])
-AC_TRY_LINK([
-  int one(void) { return 1; }
-  int two(void) { return 2; }
-  ], [ two(); ] , [ac_gcsections=yes], [ac_gcsections=no])
-
-if test "$ac_gcsections" = "yes"; then
-  rm -f conftest.c
-  touch conftest.c
-  if $CC -c conftest.c; then
-    if $LD --gc-sections -o conftest conftest.o 2>&1 | \
-      grep "Warning: gc-sections option ignored" > /dev/null; then
-      ac_gcsections=no
-    fi
-  fi
-  rm -f conftest.c conftest.o conftest
-fi
-if test "$ac_gcsections" = "yes"; then
-  SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-  CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
-fi
 AC_SUBST(SECTION_FLAGS)
 AC_SUBST(SECTION_LDFLAGS)
-AC_MSG_RESULT($ac_gcsections)
 
 # Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris
 #