summaryrefslogtreecommitdiff
path: root/math/pari/patches/patch-ag
blob: 36c6d8cbdf17a4f4092a2556f10d7a504f55a385 (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
26
27
28
$NetBSD: patch-ag,v 1.1 2003/07/07 21:57:51 jtb Exp $

--- src/kernel/sparcv7/Makefile.SH.orig
+++ src/kernel/sparcv7/Makefile.SH
@@ -3,7 +3,7 @@
 level0=$src/kernel/none/asm0.h
 level1=$src/kernel/none/level1.h
 kernel1=$src/kernel/$asmarch/level0.S
-if test "$osname" = "nextstep" -o "$osname" = "linux" -o "$gnuas" = "yes";
+if test "$osname" = "nextstep" -o "$osname" = "linux" -o "$osname" = "netbsd" -o "$gnuas" = "yes";
 then
 cat >> $file << EOT
 kernel1.s: $kernel1
@@ -15,11 +15,11 @@
 cat >> $file << EOT
 pariinl.h: $level0 $level1
 	cat $level0 $level1 > \$@
-kernel.o:  $kernel1
-	\$(AS) \$(ASFLAGS) -o \$@ $kernel1
+kernel\$(_O):  $kernel1
+	\$(CC) -c \$(CFLAGS) \$(CPPFLAGS) -o \$@ $kernel1
 mp.o: .headers $src/kernel/none/mp.c
 	\$(CC) -c \$(CFLAGS) \$(CPPFLAGS) -o \$@ $src/kernel/none/mp.c
-mpinl.o: .headers $level1 
+mpinl\$(_O): .headers $level1 
 	\$(CC) -c \$(CFLAGS) \$(CPPFLAGS) -o \$@ $src/kernel/none/level1.c
 
 EOT