From 4089ad11cad917f714ff4e714e1364f1d774966c Mon Sep 17 00:00:00 2001 From: Reinhard Prix Date: Sun, 21 Oct 2007 07:41:45 +0000 Subject: [PATCH] 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 --- checkin_notes | 9 +++++++++ configure.ac | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index df18e88508..ed19cbf042 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/configure.ac b/configure.ac index 68ffcc3ce6..eb33ac2d0a 100644 --- a/configure.ac +++ b/configure.ac @@ -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