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
Luigi Ballabio
None
None
Public
|
Date: 2008-09-09 07:57 The patch was applied to the Subversion repository. |
| Filename | Description | Download |
|---|---|---|
| configure_unit_test.patch | Fix configure when using a full path in CC | Download |
| 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 |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use