BOINC fails to link with LLD because of /usr/lib in the link command
line.
LLD does not continue to search for the correct library, once it
finds one that doesn't fit. This is made by design and will not
change.
See also : https://bugs.gentoo.org/732024
The reason for LLD failing is, that its build system puts -L/usr and
-L/usr/lib into the command line options. While these are not
neccessary at all, they cause LLD to find 32bit libraries on 64bit
systems first. As these 32bit libraries can not be used, LLD errors
out.
This commit removes the superfluous hard-coded injection of -L/usr
and -L/usr/lib into the command line.
The resulting build system has been tested with
* Clang + LLD
* gcc + ld.bfd
* gcc + ld.gold
Bug: #4095
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
support of command line compiles. Adds new configure command line option
--with-winsock to enable winsock if necessary where alternative socket libraries
exist.
Modified BOINC_CHECK_CYGWIN to call AX_WINSOCK.
Modified boinc_getsockopt.m4 to get correct type when winsock is used.
Modified AX_CHECK_GLUT to find correct libraries when compiling under
windows from command line.
svn path=/trunk/boinc/; revision=9072
under Mac OSX. Also make dist now works (make distcheck still
broken). Karl, since you were the last
person to fix up this mess, how about taking a look??
svn path=/trunk/boinc/; revision=4665