diff options
author | tron <tron@pkgsrc.org> | 2001-01-13 01:33:20 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-01-13 01:33:20 +0000 |
commit | e30dbaba4207d749a3c5974940908d8fe4fab4db (patch) | |
tree | 60eb53a1de9cfa6bc37a839c30de3af3ec9f1852 /graphics/png/patches | |
parent | 7bd26976609093446bac300f7a1d74797f3a3469 (diff) | |
download | pkgsrc-e30dbaba4207d749a3c5974940908d8fe4fab4db.tar.gz |
Make this build if "${CC}" is not "cc".
Diffstat (limited to 'graphics/png/patches')
-rw-r--r-- | graphics/png/patches/patch-aa | 8 |
1 files changed, 4 insertions, 4 deletions
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 |