From f610f4ceab3c4c095c68d64396b8902b51d74a16 Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Fri, 13 Dec 2013 13:43:17 +0000 Subject: Replace USE_FORTRAN with USES=fortran such that C/C++ code is built with Clang/libc++ on FreeBSD 10. This fixes a crash caused by the use of libstdc++ while dependencies used libc++. Approved by: maho (maintainer) --- math/octave/files/patch-configure | 11 +++++++++++ math/octave/files/patch-libgnu-math.in.h | 11 +++++++++++ math/octave/files/patch-liboctave-eigs-base.cc | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 math/octave/files/patch-configure create mode 100644 math/octave/files/patch-libgnu-math.in.h create mode 100644 math/octave/files/patch-liboctave-eigs-base.cc (limited to 'math/octave/files') diff --git a/math/octave/files/patch-configure b/math/octave/files/patch-configure new file mode 100644 index 000000000000..14bcdaaef08f --- /dev/null +++ b/math/octave/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2013-02-21 21:21:49.000000000 +0100 ++++ configure 2013-11-22 20:34:49.000000000 +0100 +@@ -58248,7 +58248,7 @@ + main () + { + +- std::unordered_map m; ++ std::unordered_map m; + + ; + return 0; diff --git a/math/octave/files/patch-libgnu-math.in.h b/math/octave/files/patch-libgnu-math.in.h new file mode 100644 index 000000000000..e6e185025978 --- /dev/null +++ b/math/octave/files/patch-libgnu-math.in.h @@ -0,0 +1,11 @@ +--- libgnu/math.in.h.orig 2013-02-21 21:21:17.000000000 +0100 ++++ libgnu/math.in.h 2013-11-22 12:35:47.000000000 +0100 +@@ -17,7 +17,7 @@ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +-#ifndef _@GUARD_PREFIX@_MATH_H ++#if 1 + + #if __GNUC__ >= 3 + @PRAGMA_SYSTEM_HEADER@ diff --git a/math/octave/files/patch-liboctave-eigs-base.cc b/math/octave/files/patch-liboctave-eigs-base.cc new file mode 100644 index 000000000000..a08e6cbc7336 --- /dev/null +++ b/math/octave/files/patch-liboctave-eigs-base.cc @@ -0,0 +1,11 @@ +--- liboctave/eigs-base.cc.orig 2013-02-21 21:19:24.000000000 +0100 ++++ liboctave/eigs-base.cc 2013-11-22 20:19:19.000000000 +0100 +@@ -3832,7 +3832,7 @@ + bool cholB = 0, int disp = 0, int maxit = 300); + #endif + +-#ifndef _MSC_VER ++#if !defined(_MSC_VER) && !defined(__clang__) + template static octave_idx_type + lusolve (const SparseMatrix&, const SparseMatrix&, Matrix&); + -- cgit v1.2.3