# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../libpng/makefile.patch # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- The libpng*.so file should carry the -lz -lm dependency ... - Rene Rebe --- libpng-1.2.8/scripts/makefile.linux.orig 2004-12-03 01:14:31.000000000 +0100 +++ libpng-1.2.8/scripts/makefile.linux 2005-04-02 17:00:39.680124000 +0200 @@ -34,7 +34,7 @@ CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops \ $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 -LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm +LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm RANLIB=ranlib @@ -99,12 +99,12 @@ $(LIBNAME).so.$(PNGVER): $(OBJSDLL) $(CC) -shared -Wl,-soname,$(LIBNAME).so.$(PNGMAJ) \ -o $(LIBNAME).so.$(PNGVER) \ - $(OBJSDLL) + $(OBJSDLL) -lz -lm libpng.so.3.$(PNGMIN): $(OBJSDLL) $(CC) -shared -Wl,-soname,libpng.so.3 \ -o libpng.so.3.$(PNGMIN) \ - $(OBJSDLL) + $(OBJSDLL) -lz -lm pngtest: pngtest.o $(LIBNAME).so $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)