blob: 38d268312ada158a6a4a8632f7d0f9150553bc98 (
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
|
$NetBSD: patch-aa,v 1.12 2003/05/23 09:26:59 wiz Exp $
--- configure.orig Thu Nov 15 18:21:05 2001
+++ configure
@@ -59,7 +59,7 @@ LIBGL=auto # auto-enable build of SGI
LIBIMAGE=auto # auto-enable build of SGI -limage apps
: ${CC=} # name of C compiler to use
: ${CCOMPILER=} # full pathname of C compiler
-: ${OPTIMIZER=-O} # Optimization flag
+: ${OPTIMIZER=} # Optimization flag
: ${ENVOPTS=} # CC opts for ANSI C compilation
: ${MAKE=make} # make to use
@@ -487,7 +487,7 @@ EOF
checkCompiler()
{
- compiler=$1
+ compiler="$*"
if isGNU $compiler; then
ISGCC=yes
else
@@ -513,7 +513,7 @@ checkCompiler()
$RM dummy dummy.o
capture $compiler -o dummy ${C_ANSI} dummy.c && {
CC=$compiler;
- test -z "${CCOMPILER-}" && CCOMPILER=`findApp $compiler $PATH`
+ test -z "${CCOMPILER-}" && CCOMPILER=$compiler
test -z "${ENVOPTS-}" && ENVOPTS="${C_ANSI-}"
return 0
}
@@ -1705,6 +1705,7 @@ relativize()
-[LR]/*) echo "$i" ;;
-L*) echo "$i" | sed 's;^-L;-L../;' ;;
-R*) echo "$i" | sed 's;^-R;-R../;' ;;
+ -W*) echo "$i" ;;
*) echo "../$i" ;;
esac
done) | tr '\012' ' '
|