equal
deleted
inserted
replaced
|
1 --- dbus-1.1.2/configure.in-orig 2007-08-06 16:20:10.499290000 -0500 |
|
2 +++ dbus-1.1.2/configure.in 2007-08-06 16:24:59.104651000 -0500 |
|
3 @@ -243,31 +243,8 @@ else |
|
4 fi |
|
5 fi |
|
6 |
|
7 -# Check for -Wl,--gc-sections |
|
8 -AC_MSG_CHECKING([for ld that supports "-Wl,--gc-sections"]) |
|
9 -AC_TRY_LINK([ |
|
10 - int one(void) { return 1; } |
|
11 - int two(void) { return 2; } |
|
12 - ], [ two(); ] , [ac_gcsections=yes], [ac_gcsections=no]) |
|
13 - |
|
14 -if test "$ac_gcsections" = "yes"; then |
|
15 - rm -f conftest.c |
|
16 - touch conftest.c |
|
17 - if $CC -c conftest.c; then |
|
18 - if $LD --gc-sections -o conftest conftest.o 2>&1 | \ |
|
19 - grep "Warning: gc-sections option ignored" > /dev/null; then |
|
20 - ac_gcsections=no |
|
21 - fi |
|
22 - fi |
|
23 - rm -f conftest.c conftest.o conftest |
|
24 -fi |
|
25 -if test "$ac_gcsections" = "yes"; then |
|
26 - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" |
|
27 - CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" |
|
28 -fi |
|
29 AC_SUBST(SECTION_FLAGS) |
|
30 AC_SUBST(SECTION_LDFLAGS) |
|
31 -AC_MSG_RESULT($ac_gcsections) |
|
32 |
|
33 # Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris |
|
34 # |