summaryrefslogtreecommitdiff
path: root/math/py-Scientific/patches/patch-ab
blob: ba33668fbc2406cbfd90adad04e169f59fe387b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ab,v 1.1 2004/01/18 23:57:50 recht Exp $

--- Src/MPI/compile.py.orig	2003-12-19 20:33:31.000000000 +0100
+++ Src/MPI/compile.py	2004-01-18 21:57:52.000000000 +0100
@@ -12,10 +12,19 @@
 mpicompiler = 'mpicc'
 sources='mpipython.c Scientific_mpi.c'
 
+ldflags=""
+if os.environ.has_key('LDFLAGS'):
+    ldflags = os.environ['LDFLAGS']
 
-cmd = '%s %s -o mpipython -I%s %s -L%s -lpython%s %s %s' % \
+cflags=""
+if os.environ.has_key('CFLAGS'):
+    cflags = os.environ['CFLAGS']
+
+cmd = '%s %s %s -o mpipython -I../../Include %s -I%s %s -L%s -lmpich -lpython%s %s %s' % \
     (mpicompiler, 
+    ldflags,
     cfgDict['LINKFORSHARED'],
+    cflags,
     cfgDict['INCLUDEPY'],
     sources,
     cfgDict['LIBPL'],