build boost with gcc4 and newer libstdc++-v3.
(I'll revisit the math funcs later)
This commit is contained in:
parent
46bd828c63
commit
a4bcddad44
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.23 2010/04/30 20:08:02 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.24 2010/05/26 12:25:23 espie Exp $
|
||||
|
||||
COMMENT= free peer-reviewed portable C++ source libraries
|
||||
|
||||
PKGNAME= boost-${VERSION}p1
|
||||
PKGNAME= boost-${VERSION}p2
|
||||
|
||||
VERSION= 1.42.0
|
||||
DISTNAME= boost_${VERSION:S/./_/g}
|
||||
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-boost_math_special_functions_expm1_hpp,v 1.1 2010/05/26 12:25:23 espie Exp $
|
||||
--- boost/math/special_functions/expm1.hpp.orig Wed May 26 11:30:30 2010
|
||||
+++ boost/math/special_functions/expm1.hpp Wed May 26 11:31:54 2010
|
||||
@@ -268,7 +268,9 @@ inline typename tools::promote_args<T>::type expm1(T x
|
||||
# ifdef BOOST_MATH_USE_C99
|
||||
inline float expm1(float x, const policies::policy<>&){ return ::expm1f(x); }
|
||||
# ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
|
||||
+# ifndef __OpenBSD__
|
||||
inline long double expm1(long double x, const policies::policy<>&){ return ::expm1l(x); }
|
||||
+# endif
|
||||
# endif
|
||||
# else
|
||||
inline float expm1(float x, const policies::policy<>&){ return ::expm1(x); }
|
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-boost_math_special_functions_log1p_hpp,v 1.1 2010/05/26 12:25:23 espie Exp $
|
||||
--- boost/math/special_functions/log1p.hpp.orig Wed May 26 11:33:17 2010
|
||||
+++ boost/math/special_functions/log1p.hpp Wed May 26 11:33:39 2010
|
||||
@@ -329,6 +329,7 @@ inline float log1p(float x, const Policy& pol)
|
||||
return ::log1pf(x);
|
||||
}
|
||||
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
|
||||
+#ifndef __OpenBSD__
|
||||
template <class Policy>
|
||||
inline long double log1p(long double x, const Policy& pol)
|
||||
{
|
||||
@@ -340,6 +341,7 @@ inline long double log1p(long double x, const Policy&
|
||||
"log1p<%1%>(%1%)", 0, pol);
|
||||
return ::log1pl(x);
|
||||
}
|
||||
+#endif
|
||||
#endif
|
||||
#else
|
||||
template <class Policy>
|
Loading…
Reference in New Issue
Block a user