freebsd-ports/finance/quantlib/files/patch-test-suite_quantlibtestsuite.cpp
Simon Barner c6c8ea5d53 - 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
2007-07-09 07:35:11 +00:00

12 lines
362 B
C++

--- 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>