source:
scripts/patches/libpng-1.2.8-link_to_proper_libs-1.patch@
5548691
Last change on this file since 5548691 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.1 KB |
-
scripts/libpng.pc.in
Submitted By: Bruce Dubbs <bdubbs@linuxfromscratch.org> Date: 2004-08-05 Updated By: Ryan Oliver <ryan.oliver@pha.com.au> Date: 2005-03-28 Initial Package Version: 1.2.8 Origin: http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=644 Description: libpng is not linked against libz and libm. This causes problems for packages that try to link against libpng without including "-lz -lm" in the linker flags. diff -uNr libpng-1.2.8-orig/scripts/libpng.pc.in libpng-1.2.8/scripts/libpng.pc.in
old new 7 7 Name: libpng12 8 8 Description: Loads and saves PNG files 9 9 Version: 1.2.8 10 Libs: -L${libdir} -lpng12 -lz -lm10 Libs: -L${libdir} -lpng12 11 11 Cflags: -I${includedir}/libpng12 -
scripts/makefile.linux
diff -uNr libpng-1.2.8-orig/scripts/makefile.linux libpng-1.2.8/scripts/makefile.linux
old new 34 34 CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops \ 35 35 $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 36 36 37 LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm 38 LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm 37 LIBS=-lz -lm 38 LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 39 LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a $(LIBS) 39 40 40 41 RANLIB=ranlib 41 42 #RANLIB=echo … … 86 87 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ 87 88 echo L_opts=\"-L$(LIBPATH)\"; \ 88 89 echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \ 89 echo libs=\"-lpng12 -lz -lm\"; \90 echo libs=\"-lpng12\"; \ 90 91 cat scripts/libpng-config-body.in ) > libpng-config 91 92 chmod +x libpng-config 92 93 … … 99 100 $(LIBNAME).so.$(PNGVER): $(OBJSDLL) 100 101 $(CC) -shared -Wl,-soname,$(LIBNAME).so.$(PNGMAJ) \ 101 102 -o $(LIBNAME).so.$(PNGVER) \ 102 $(OBJSDLL) 103 $(OBJSDLL) $(LIBS) 103 104 104 105 libpng.so.3.$(PNGMIN): $(OBJSDLL) 105 106 $(CC) -shared -Wl,-soname,libpng.so.3 \ 106 107 -o libpng.so.3.$(PNGMIN) \ 107 $(OBJSDLL) 108 $(OBJSDLL) $(LIBS) 108 109 109 110 pngtest: pngtest.o $(LIBNAME).so 110 111 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
Note:
See TracBrowser
for help on using the repository browser.