[ quantlib-Bugs-2096014 ] configure fails to find unit test libs with full path in CC

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-2096014 ] configure fails to find unit test libs with full path in CC

SourceForge.net
Bugs item #2096014, was opened at 2008-09-06 10:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2096014&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Anton Blanchard (antonb)
Assigned to: Nobody/Anonymous (nobody)
Summary: configure fails to find unit test libs with full path in CC

Initial Comment:
A common way to test an alternate compiler is to override CC and CXX, eg:

./configure CC=/root/gcc-test/bin/gcc CXX=/root/gcc-test/bin/g++

Unfortunately configure fails to find the boost unit test libs because it creates patterns with the full pathname:

/root/gcc-test/bin/g++ -o conftest conftest.cc  -lboost_unit_test_framework-/root/gcc-test/bin/gcc44

We can use basename to strip the full path from CC. After applying the patch and running autoconf we now find the library:

/root/gcc-test/bin/g++ -o conftest conftest.cc  -lboost_unit_test_framework-gcc44

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2096014&group_id=12740

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev