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 )
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)
Change History (7)
Changed 18 years ago by
Attachment: | 510-boinc-cflags-unroll-loops-fix.patch added |
---|
comment:1 Changed 18 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 17 years ago by
Owner: | changed from romw to davea |
---|
comment:3 Changed 17 years ago by
Owner: | changed from davea to repr |
---|
comment:4 Changed 17 years ago by
Description: | modified (diff) |
---|---|
Keywords: | patch added |
Has this been fixed already?
comment:6 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch provided by original reporter