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
old
|
new
|
msg_test_CXXFLAGS = $(PTHREAD_CFLAGS) |
205 | 205 | msg_test_LDADD = $(LIBBOINC) |
206 | 206 | crypt_prog_SOURCES = crypt_prog.cpp |
207 | 207 | crypt_prog_CXXFLAGS = $(PTHREAD_CFLAGS) |
208 | | crypt_prog_LDADD = $(LIBBOINC) $(LIBBOINC_CRYPT_STATIC) $(SSL_LIBS) |
| 208 | crypt_prog_LDADD = $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC) $(SSL_LIBS) |
209 | 209 | |