Make boinc-6.10.18 compile with LDFLAGS="-Wl,--as-needed" The library providing the symbols has to be named after the library using the symbols. Therefore LIBBOINC has to be after LIBBOINC_CRYPT_STATIC. 2009-11-13 Martin von Gagern References: http://bugs.gentoo.org/293024 http://www.gentoo.org/proj/en/qa/asneeded.xml Index: boinc-6.10.18/lib/Makefile.am =================================================================== --- boinc-6.10.18.orig/lib/Makefile.am +++ boinc-6.10.18/lib/Makefile.am @@ -205,5 +205,5 @@ msg_test_CXXFLAGS = $(PTHREAD_CFLAGS) msg_test_LDADD = $(LIBBOINC) crypt_prog_SOURCES = crypt_prog.cpp crypt_prog_CXXFLAGS = $(PTHREAD_CFLAGS) -crypt_prog_LDADD = $(LIBBOINC) $(LIBBOINC_CRYPT_STATIC) $(SSL_LIBS) +crypt_prog_LDADD = $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC) $(SSL_LIBS)