From e30dbaba4207d749a3c5974940908d8fe4fab4db Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 13 Jan 2001 01:33:20 +0000 Subject: Make this build if "${CC}" is not "cc". --- graphics/png/patches/patch-aa | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'graphics/png/patches') diff --git a/graphics/png/patches/patch-aa b/graphics/png/patches/patch-aa index a46898baf96..ba911286511 100644 --- a/graphics/png/patches/patch-aa +++ b/graphics/png/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.11 2000/10/06 01:38:51 jlam Exp $ +$NetBSD: patch-aa,v 1.12 2001/01/13 01:33:20 tron Exp $ --- scripts/makefile.std.orig Wed Dec 8 18:44:40 1999 +++ scripts/makefile.std @@ -18,7 +18,7 @@ $NetBSD: patch-aa,v 1.11 2000/10/06 01:38:51 jlam Exp $ -CC=cc -CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5 -LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm -+CC=${LIBTOOL} --mode=compile cc ++CC=${LIBTOOL} --mode=compile $(REALCC) +CFLAGS+=-O # -g -DPNG_DEBUG=5 +LDFLAGS=libpng.la -lz -lm @@ -35,12 +35,12 @@ $NetBSD: patch-aa,v 1.11 2000/10/06 01:38:51 jlam Exp $ - ar rc $@ $(OBJS) - $(RANLIB) $@ +libpng.la: $(OBJS) -+ ${LIBTOOL} --mode=link cc -o $@ ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -lz -lm -version-info 1:3 ++ ${LIBTOOL} --mode=link $(REALCC) -o $@ ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -lz -lm -version-info 1:3 -pngtest: pngtest.o libpng.a - $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) +pngtest: pngtest.o libpng.la -+ ${LIBTOOL} --mode=link cc -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) ++ ${LIBTOOL} --mode=link $(REALCC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) test: pngtest ./pngtest -- cgit v1.2.3