diff options
author | Simon Barner <barner@FreeBSD.org> | 2007-07-09 07:35:11 +0000 |
---|---|---|
committer | Simon Barner <barner@FreeBSD.org> | 2007-07-09 07:35:11 +0000 |
commit | c6c8ea5d536e5d87668f29d05173228031455962 (patch) | |
tree | 1c7796bc01bf14f943ba03cb952d84c69d481c98 /finance | |
parent | 1ddbd26a07993e9f191beb5cb2045cc21f52fde2 (diff) | |
download | ports-c6c8ea5d536e5d87668f29d05173228031455962.tar.gz ports-c6c8ea5d536e5d87668f29d05173228031455962.zip |
- Fix build with boost 1.34.0: The Boost unit test framework shared library
no longer contains main(), so set the right #defines.
Reference: http://lists.boost.org/boost-users/2007/04/27361.php
- Notified by: pointyhat via pav
Notes
Notes:
svn path=/head/; revision=195284
Diffstat (limited to 'finance')
-rw-r--r-- | finance/quantlib/files/patch-configure | 11 | ||||
-rw-r--r-- | finance/quantlib/files/patch-test-suite_quantlibtestsuite.cpp | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/finance/quantlib/files/patch-configure b/finance/quantlib/files/patch-configure new file mode 100644 index 000000000000..607d1e03acb3 --- /dev/null +++ b/finance/quantlib/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Mon Jul 9 08:30:38 2007 ++++ configure Mon Jul 9 08:29:58 2007 +@@ -20357,6 +20357,8 @@ + LIBS="$ql_original_LIBS -l$boost_lib" + boost_unit_found=no + cat >conftest.$ac_ext <<_ACEOF ++#define BOOST_TEST_DYN_LINK ++#define BOOST_TEST_MAIN + #include <boost/test/unit_test.hpp> + using namespace boost::unit_test_framework; + test_suite* diff --git a/finance/quantlib/files/patch-test-suite_quantlibtestsuite.cpp b/finance/quantlib/files/patch-test-suite_quantlibtestsuite.cpp new file mode 100644 index 000000000000..8903711bc06d --- /dev/null +++ b/finance/quantlib/files/patch-test-suite_quantlibtestsuite.cpp @@ -0,0 +1,12 @@ +--- test-suite/quantlibtestsuite.cpp.orig Mon Jul 9 08:35:31 2007 ++++ test-suite/quantlibtestsuite.cpp Mon Jul 9 08:36:10 2007 +@@ -18,6 +18,9 @@ + FOR A PARTICULAR PURPOSE. See the license for more details. + */ + ++#define BOOST_TEST_DYN_LINK ++#define BOOST_TEST_MAIN ++ + #include <ql/types.hpp> + #include <boost/test/unit_test.hpp> + #include <boost/timer.hpp> |