aboutsummaryrefslogtreecommitdiffstats
path: root/finance
diff options
context:
space:
mode:
authorbarner <barner@FreeBSD.org>2007-07-09 15:35:11 +0800
committerbarner <barner@FreeBSD.org>2007-07-09 15:35:11 +0800
commit3d063da6507cae4f4ab72110a833b275b138d733 (patch)
tree686623ed4a00e12752be7a19e1ec9ad04a262c2c /finance
parent55bf8986ba13b58c694039e562d7ef9cbbbb7d9f (diff)
downloadfreebsd-ports-gnome-3d063da6507cae4f4ab72110a833b275b138d733.tar.gz
freebsd-ports-gnome-3d063da6507cae4f4ab72110a833b275b138d733.tar.zst
freebsd-ports-gnome-3d063da6507cae4f4ab72110a833b275b138d733.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
Diffstat (limited to 'finance')
-rw-r--r--finance/quantlib/files/patch-configure11
-rw-r--r--finance/quantlib/files/patch-test-suite_quantlibtestsuite.cpp12
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>