Message: i686-pc-linux-gnu-gcc -O2 -pipe -march=athlon64 -msse3 -Wl,--hash-style=both -Wl,--as-needed -o .libs/link_libpowersave link_libpowersave-link_libpowersave.o ../../libpower/.libs/libpowersave.so -lm /usr/lib/liblazy.so /usr/lib/libdbus-1.so ../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_free_string' ../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_get_property_string' ../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_get_property_int' ../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_get_property_bool' ../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_find_device_by_capability' ../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_free_strlist' collect2: ld returned 1 exit status make[3]: *** [link_libpowersave] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-power/powersave-0.15.11/work/powersave-0.15.11/testsuite/linktests' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-power/powersave-0.15.11/work/powersave-0.15.11/testsuite' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-power/powersave-0.15.11/work/powersave-0.15.11' make: *** [all] Error 2 Without --as-needed, it works.
Want to contribute a patch for it? :) see http://www.gentoo.org/proj/en/qa/asneeded.xml for how to do so.
Created attachment 116406 [details, diff] should be applied to 'libpower/Makefile'
I have created a "patch", however, I'm not sure, that this is the best method. The LIBS varible should be modified somehow with autotools/autoconf, not? :-/
Thank you very much! I have improved your patch a bit and committed it to the tree. Nice to see people participate :)