aboutsummaryrefslogtreecommitdiff
path: root/math/ccmath/files/patch-ac
blob: 3dcbbfb7335dc2b93f076407da84f4c280698194 (plain) (blame)
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
26
27
28
29
30
--- makelibs.sh.orig	Sat May 20 09:01:56 2000
+++ makelibs.sh	Fri Nov 21 07:44:44 2003
@@ -9,23 +9,19 @@
 LST="cfit complex fft geom intg matrix roots sfunc simu sort statf tseries util xarm"
 MDR=`pwd`
 LSOD=$MDR/tmp
-echo "Intel platform ? (y/n)"
-read F
 for dr in $LST
   do
     cd $MDR/$dr
     echo `pwd`
-    cc -c -O3 *.c
+    cc -c $CFLAGS -fPIC *.c
     mv *.o $LSOD
   done
-if [ $F = "y" ]
-  then cd $MDR/matrix
-    cc -c -O3 solv.s
+    cd $MDR/matrix
+    cc -c $CFLAGS solv.s
     mv *.o $LSOD
     cd $MDR/simu
-    cc -c -O3 *.s
+    cc -c $CFLAGS *.s
     mv *.o $LSOD
-fi
 cd $LSOD
 ar r libccm.a *.o
 ld -shared -o libccm.so *.o