hal: Branch 'origin' - 2 commits

Richard Hughes hughsient at kemper.freedesktop.org
Tue Feb 20 12:55:52 PST 2007


 configure.in |    7 +++++++
 1 files changed, 7 insertions(+)

New commits:
diff-tree a738fb6d5156e8ab4d1cdfc85d4f413e7204812c (from parents)
Merge: d2871fb001da427ae4446688d7b40924f72cf677 5c805a264429fd58a18ce8233a1cefd96f10ea99
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Feb 20 14:39:39 2007 -0500

    Merge branch 'master' of ssh://david@git.freedesktop.org/git/hal

diff-tree d2871fb001da427ae4446688d7b40924f72cf677 (from e30c3d6de8da910f2547c5c12b1cbb3dfe99261d)
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Feb 20 14:39:21 2007 -0500

    use -Wl,--as-needed by default for gcc
    
    Basically, this will speed up exec'ing helpers. Here's a list of the
    unused library dependencies we had prior to doing this. With this
    change, ldd -u -r now reports no unused library dependencies.
    
    $ ldd -u -r /usr/libexec/hal-* /usr/libexec/hald-* /usr/bin/hal-* /usr/bin/lshal /usr/sbin/hal
    /usr/libexec/hal-acl-tool:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hal-storage-cleanup-all-mountpoints:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hal-storage-cleanup-mountpoint:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hal-storage-closetray:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hal-storage-eject:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hal-storage-mount:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hal-storage-unmount:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hal-system-power-pmu:
    Unused direct dependencies:
    
    	/usr/lib/libhal.so.1
    	/lib/libdbus-1.so.3
    /usr/libexec/hald-addon-acpi:
    Unused direct dependencies:
    
    /usr/libexec/hald-addon-acpi-buttons-toshiba:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hald-addon-cpufreq:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    /usr/libexec/hald-addon-hid-ups:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hald-addon-keyboard:
    Unused direct dependencies:
    
    /usr/libexec/hald-addon-macbookpro-backlight:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    /usr/libexec/hald-addon-pmu:
    Unused direct dependencies:
    
    /usr/libexec/hald-addon-storage:
    Unused direct dependencies:
    
    /usr/libexec/hald-addon-usb-csr:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hald-generate-fdi-cache:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    	/lib/libdbus-1.so.3
    	/lib/libm.so.6
    /usr/libexec/hald-probe-hiddev:
    Unused direct dependencies:
    
    /usr/libexec/hald-probe-input:
    Unused direct dependencies:
    
    /usr/libexec/hald-probe-pc-floppy:
    Unused direct dependencies:
    
    /usr/libexec/hald-probe-printer:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hald-probe-serial:
    Unused direct dependencies:
    
    	/usr/lib/libhal.so.1
    	/lib/libdbus-1.so.3
    /usr/libexec/hald-probe-smbios:
    Unused direct dependencies:
    
    /usr/libexec/hald-probe-storage:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hald-probe-volume:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    	/usr/lib/libdbus-glib-1.so.2
    /usr/libexec/hald-runner:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    /usr/bin/hal-device:
    Unused direct dependencies:
    
    /usr/bin/hal-device-manager:
    	not a dynamic executable
    /usr/bin/hal-find-by-capability:
    Unused direct dependencies:
    
    /usr/bin/hal-find-by-property:
    Unused direct dependencies:
    
    /usr/bin/hal-get-property:
    Unused direct dependencies:
    
    /usr/bin/hal-set-property:
    Unused direct dependencies:
    
    /usr/bin/lshal:
    Unused direct dependencies:
    
    	/lib/libgobject-2.0.so.0
    /usr/sbin/hald:
    Unused direct dependencies:

diff --git a/configure.in b/configure.in
index 8c4cccf..ae56a6e 100644
--- a/configure.in
+++ b/configure.in
@@ -196,6 +196,12 @@ AC_SUBST(USE_PARTED)
 AM_CONDITIONAL(USE_PARTED, test x$use_parted == xyes)
 
 
+#### gcc linker flags
+
+if test "x$GCC" = "xyes"; then
+  LDFLAGS="-Wl,--as-needed $LDFLAGS"
+fi
+
 #### gcc warning flags
 
 if test "x$GCC" = "xyes"; then
@@ -805,6 +811,7 @@ echo "
 
         compiler:                   ${CC}
         cflags:                     ${CFLAGS}
+        ldflags:                    ${LDFLAGS}
         cppflags:                   ${CPPFLAGS}
 	docbook2html:               ${DOCBOOK}
 	xmllint:                    ${XMLLINT}


More information about the hal-commit mailing list