Opened 18 years ago

Closed 17 years ago

#88 closed Defect (fixed)

cannot build boinc where cflags contain a flag with -l in the middle

Reported by: KSMarksPsych Owned by: repr
Priority: Minor Milestone: Undetermined
Component: Client - Build Version:
Keywords: patch Cc:

Description (last modified by Nicolas)

Posted by: Date: 1:13 AM 07-08-2006 Currently you cannot build boinc where you have default cflags specified with a -l in the middle of the flag.

-funroll-loops is one such flag. GCC supports numeros others. This occured on Gentoo with version 5.2.14, but I've confirm that the same problem exists in the cvs version of boinc.

Issue is that when performing the "checking for curl_free" test LDFLAGS are modified. CFLAGS are pulled in as part of of what is returned by running /usr/bin/curl-config --libs

the result is currently passed through

sed 's/-l[^ ]*//g'

which results in -funroll-loops being converted to -funroll

result is that all the tests afterwards that use the LDFLAGS to perform a test compile to fail. This results in wrong includes/libraries being setup by the configure script and ultimately when you run make causes fatal errors to occur.

I've attached a patch to fix the configure.ac script and thus the test in configure. Further details can be found by viewing the bug I've logged on the gentoo website, http://bugs.gentoo.org/show_bug.cgi?id=139621

Attachments (1)

510-boinc-cflags-unroll-loops-fix.patch (587 bytes) - added by KSMarksPsych 18 years ago.
Patch provided by original reporter

Download all attachments as: .zip

Change History (7)

Changed 18 years ago by KSMarksPsych

Patch provided by original reporter

comment:1 Changed 18 years ago by KSMarksPsych

Description: modified (diff)

comment:2 Changed 17 years ago by romw

Owner: changed from romw to davea

comment:3 Changed 17 years ago by romw

Owner: changed from davea to repr

comment:4 Changed 17 years ago by Nicolas

Description: modified (diff)
Keywords: patch added

Has this been fixed already?

comment:5 in reply to:  description Changed 17 years ago by repr

fixed in r13919 [how/were can I close the ticket??]

comment:6 Changed 17 years ago by Didactylos

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.