pkgsrc/graphics/tiff/patches/patch-aa

40 lines
1.1 KiB
Text

$NetBSD: patch-aa,v 1.13 2004/04/12 14:41:03 jschauma Exp $
--- configure.orig Mon Apr 12 09:58:40 2004
+++ configure Mon Apr 12 10:01:34 2004
@@ -59,7 +59,7 @@
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
@@ -488,7 +488,7 @@
checkCompiler()
{
- compiler=$1
+ compiler="$*"
if isGNU $compiler; then
ISGCC=yes
else
@@ -514,7 +514,7 @@
$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
}
@@ -1743,6 +1743,8 @@
-[LR]/*) echo "$i" ;;
-L*) echo "$i" | sed 's;^-L;-L../;' ;;
-R*) echo "$i" | sed 's;^-R;-R../;' ;;
+ -rpath*) echo "$i" ;;
+ -W*) echo "$i" ;;
*) echo "../$i" ;;
esac
done) | tr '\012' ' '