aboutsummaryrefslogtreecommitdiffstats
path: root/math/atlas
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2003-05-10 06:45:59 +0800
committermaho <maho@FreeBSD.org>2003-05-10 06:45:59 +0800
commit94c29e98fa0c8616b4ff4ef36a3e9c2dca426647 (patch)
tree200e547d7c30412c383b21da86793073bab9c54c /math/atlas
parentb639fc13647304cdef8a66221229035f5525216d (diff)
downloadfreebsd-ports-gnome-94c29e98fa0c8616b4ff4ef36a3e9c2dca426647.tar.gz
freebsd-ports-gnome-94c29e98fa0c8616b4ff4ef36a3e9c2dca426647.tar.zst
freebsd-ports-gnome-94c29e98fa0c8616b4ff4ef36a3e9c2dca426647.zip
Fix linkage problem for multithreaded support.
PR: 48511 Submitted by: Josh Tolbert <hemi@puresimplicity.net>
Diffstat (limited to 'math/atlas')
-rw-r--r--math/atlas/files/patch-config.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/math/atlas/files/patch-config.c b/math/atlas/files/patch-config.c
index a5056bf654d9..08d9cdfdac15 100644
--- a/math/atlas/files/patch-config.c
+++ b/math/atlas/files/patch-config.c
@@ -1,5 +1,5 @@
--- config.c.orig Fri Apr 25 03:10:17 2003
-+++ config.c Mon May 5 07:40:36 2003
++++ config.c Sat May 10 07:43:36 2003
@@ -697,7 +697,7 @@
else if (mach == IA64Itan || MachIsUS(mach) ||
mach == Dec21164 || mach == Dec21264)
@@ -9,7 +9,18 @@
{
strcpy(goodgcc, files[i]);
return(0);
-@@ -2104,7 +2104,10 @@
+@@ -1102,7 +1102,9 @@
+ switch(OS)
+ {
+ case OSOSX: /* don't know answer */
+- case OSFreeBSD: /* don't know answer */
++ case OSFreeBSD:
++ if (THREADS) strcpy(LIBS, "-pthread -lm");
++ break;
+ case OSLinux:
+ break;
+ case OSSunOS:
+@@ -2104,7 +2106,10 @@
if (!CmndOneLine(targ, "sysctl hw.model", ln))
{
if (strstr(ln, "433au")) mach = Dec21164;
@@ -20,7 +31,7 @@
}
break;
case LAIA64: /* don't know */
-@@ -2113,14 +2116,17 @@
+@@ -2113,14 +2118,17 @@
if (!CmndOneLine(targ, "sysctl hw.model", ln))
{
if (strstr(ln, "Pentium Pro")) mach = IntPPRO;
@@ -38,7 +49,7 @@
}
break;
default:;
-@@ -3124,6 +3130,9 @@
+@@ -3124,6 +3132,9 @@
}
if (USEWINF77) strcpy(F77, "$(BINdir)/winf77.exe");