fixed handling of curl-libs to avoid erroneous trunction of compiler-flags

containing '-l', such as '-funroll-loops'. These are not really supposed to be contained in 
"curl-config --libs", but apparently this happens at least in Gentoo, as reported here:
http://bugs.gentoo.org/show_bug.cgi?id=139621.
I have applied the patch supplied by Darragh Bailey (of 2006-07-07).
This should fix Gentoo Bugzilla Bug 139621.

svn path=/trunk/boinc/; revision=13919
This commit is contained in:
Reinhard Prix 2007-10-21 07:41:45 +00:00
parent e8c2a2927a
commit 4089ad11ca
2 changed files with 10 additions and 1 deletions

View File

@ -9706,3 +9706,12 @@ David 20 Oct 2007
client/
cs_platforms.C
log_flags.C,h
Reinhard 21 Oct 2007
- configure.ac: fixed handling of curl-libs to avoid erroneous trunction of compiler-flags
containing '-l', such as '-funroll-loops'. These are not really supposed to be contained in
"curl-config --libs", but apparently this happens at least in Gentoo, as reported here:
http://bugs.gentoo.org/show_bug.cgi?id=139621.
I have applied the patch supplied by Darragh Bailey (of 2006-07-07).
This should fix Gentoo Bugzilla Bug 139621.
configure.ac

View File

@ -271,7 +271,7 @@ ERROR: could not find (recent enough) development-libs for libcurl.
## add libcurl et al. to the list of statically linked libs
STATIC_LIB_LIST="${STATIC_LIB_LIST} curl idn crypto ssl krb5 k5crypto gssapi_krb5 com_err resolv"
CPPFLAGS="${CPPFLAGS} ${LIBCURL_CPPFLAGS}"
CURL_LIB_PATHS=`echo $LIBCURL | sed 's/-l[[^ ]]*//g'`
CURL_LIB_PATHS=`echo $LIBCURL | sed 's/[^[a-zA-Z]]*-l[^ ]*//g'`
LDFLAGS="$CURL_LIB_PATHS $LDFLAGS"
if test "${enable_debug}" = yes; then