blob: 1f5a938c2cc3746b3db1d20dd25d0d84726b1b91 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
--- Makefile.orig 2008-11-04 22:36:26.000000000 +0100
+++ Makefile 2008-11-04 22:40:08.000000000 +0100
@@ -1,3 +1,5 @@
+CC=`head -n 1 conf-cc`
+
default: it
clean:
@@ -108,7 +110,7 @@
hasrpcc.h load rts rts.exp speed systype
rm -f sysdeps
echo nistp224 0.75 >> sysdeps
- gcc --version >> sysdeps
+ ${CC} --version >> sysdeps
cat systype compile load >> sysdeps
grep sysdep hasgethr.h >> sysdeps
grep sysdep hasrdtsc.h >> sysdeps
--- find-systype.sh.orig 2008-11-04 22:35:18.000000000 +0100
+++ find-systype.sh 2008-11-04 22:36:51.000000000 +0100
@@ -79,8 +79,8 @@
;;
esac
else
- gcc -c trycpp.c
- gcc -o trycpp trycpp.o
+ ${CC} -c trycpp.c
+ ${CC} -o trycpp trycpp.o
case `./trycpp` in
nextstep)
oper="nextstep-`hostinfo | sed -n 's/^[ ]*NeXT Mach \([^:]*\):.*$/\1/p'`"
--- print-cc.sh.orig 2008-11-04 22:34:51.000000000 +0100
+++ print-cc.sh 2008-11-04 22:35:04.000000000 +0100
@@ -1,46 +1,5 @@
cc="`head -n 1 conf-cc`"
systype="`cat systype`"
-
-gcc -c trycpp.c -malign-double >/dev/null 2>&1 \
-&& gccad="-malign-double"
-
-gcc -c trycpp.c -mcpu=ultrasparc >/dev/null 2>&1 \
-&& gccus="-mcpu=ultrasparc"
-
-gcc -c trycpp.c -mcpu=powerpc >/dev/null 2>&1 \
-&& gccpp="-mcpu=powerpc"
-
-gcc -c trycpp.c -mcpu=21164 >/dev/null 2>&1 \
-&& gcc21="-mcpu=21164"
-
-rm -f trycpp.o
-
-
-gccbase="gcc -fomit-frame-pointer -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings"
-
-
-case "$cc:$systype" in
- auto:*:i386-*:*)
- cc="$gccbase -O1 $gccad"
- ;;
- auto:*:sparc-*:*:*:*)
- cc="$gccbase -O1 $gccus"
- ;;
- auto:*:ppc-*:*:*:*)
- cc="$gccbase -O2 $gccpp"
- ;;
- auto:*:alpha-*:*:*:*)
- cc="$gccbase -O2 $gcc21"
- ;;
- auto:aix-*:-:-:*:-)
- cc="$gccbase -O2 $gccpp"
- ;;
- auto:*)
- cc="$gccbase -O2"
- ;;
-esac
-
-
cat warn-auto.sh
echo exec "$cc" '-c ${1+"$@"}'
|