linamh/media-libs/netpbm/files/netpbm-10.48.00-pnmtopng-zlib.patch

13 lines
419 B
Diff
Raw Normal View History

http://bugs.gentoo.org/291987
--- netpbm/converter/other/Makefile
+++ netbpm/converter/other/Makefile
@@ -159,6 +156,7 @@
$(shell $(LIBOPT) $(NETPBMLIB)) \
$(PNGLIB_LIBOPTS) $(MATHLIB) $(LDFLAGS) $(LDLIBS) $(RPATH) $(LADD)
+pnmtopng: LADD += -lz # pnmtopng calls zlib_version itself
pnmtopng: %: %.o pngx.o pngtxt.o $(NETPBMLIB) $(LIBOPT)
$(LD) -o $@ $@.o pngtxt.o \
$(shell $(LIBOPT) $(NETPBMLIB)) \