Share

QuantLib

Tracker: Bugs

5 configure fails to find unit test libs with full path in CC - ID: 2096014
Last Update: Comment added ( lballabio )

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


Anton Blanchard ( antonb ) - 2008-09-06 00:33

5

Closed

Fixed

Luigi Ballabio

None

None

Public


Comment ( 1 )




Date: 2008-09-09 07:57
Sender: lballabioProject Admin

The patch was applied to the Subversion repository.
Thank you for the report and the fix.



Log in to comment.

Attached File ( 1 )

Filename Description Download
configure_unit_test.patch Fix configure when using a full path in CC Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2008-09-09 07:57 lballabio
resolution_id None 2008-09-09 07:57 lballabio
assigned_to nobody 2008-09-09 07:57 lballabio
close_date - 2008-09-09 07:57 lballabio
File Added 292322: configure_unit_test.patch 2008-09-06 00:33 antonb