mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
d3f4123373
default gcc version change when USE_FORTRAN=yes. Patches included from http://bugs.gentoo.org/show_bug.cgi?id=318045. [1] - Renamed and conditionalized some patches to support tgammaf function on OSVERSION < 800023. Previously, it was included even when present in the system math library. Also fixed name-mangling problem in the patches. Declarations were wrapped in 'extern "C"', but the definitions were not, causing a linker error. - Added a patch to CMakeLists.txt to prevent cmake from changing rpath during the installation phase. That caused libstdc++ from /usr/lib to be used instead of the one supplied with gcc 4.5. Requested by: gerald [1]
15 lines
538 B
C++
15 lines
538 B
C++
--- ./libs/libFreeMat/Math.cpp.orig 2009-10-09 02:24:22.000000000 -0400
|
|
+++ ./libs/libFreeMat/Math.cpp 2010-09-21 14:32:02.000000000 -0400
|
|
@@ -1590,9 +1590,9 @@
|
|
|
|
Array Not(const Array& A) {
|
|
if (A.isScalar())
|
|
- return Array::Array(!A.toClass(Bool).constRealScalar<bool>());
|
|
+ return Array(!A.toClass(Bool).constRealScalar<bool>());
|
|
const Array &Abool(A.toClass(Bool));
|
|
- return Array::Array(Apply(Abool.constReal<bool>(),notfunc));
|
|
+ return Array(Apply(Abool.constReal<bool>(),notfunc));
|
|
}
|
|
|
|
Array Plus(const Array& A) {
|