]> git.pld-linux.org Git - packages/crossmingw32-libpng.git/blame - crossmingw32-libpng-shared.patch
- updated to 1.2.28
[packages/crossmingw32-libpng.git] / crossmingw32-libpng-shared.patch
CommitLineData
b3bad142
JB
1--- libpng-1.2.9/scripts/makefile.gcmmx.orig 2006-04-17 02:42:00.719772250 +0200
2+++ libpng-1.2.9/scripts/makefile.gcmmx 2006-04-17 02:45:16.564011750 +0200
3@@ -107,12 +107,15 @@
40bdedea 4 .c.pic.o:
5 $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
6
b3bad142 7-all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config
90d756fb 8+all: libpng.a png.dll libpng-config
40bdedea 9
10 libpng.a: $(OBJS)
b3bad142 11 $(AR_RC) $@ $(OBJS)
40bdedea 12 $(RANLIB) $@
13
14+png.dll: $(OBJS)
15+ $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o png.dll -Wl,--out-implib,libpng.dll.a -lz
16+
17 libpng.pc:
b3bad142 18 cat scripts/libpng.pc.in | sed -e "s,@prefix@,$(prefix),;s,@exec_prefix@,$(exec_prefix),;s,@libdir@,$(LIBPATH),;s,@includedir@,$(INCPATH),;s,@PNGLIB_VERSION@,$(PNGMIN),;s,@PNGLIB_MAJOR@,12," > libpng.pc
40bdedea 19
b3bad142
JB
20--- libpng-1.2.9/scripts/makefile.linux.orig 2006-04-17 02:42:00.719772250 +0200
21+++ libpng-1.2.9/scripts/makefile.linux 2006-04-17 02:45:49.770087000 +0200
22@@ -84,12 +84,15 @@
40bdedea 23 .c.pic.o:
24 $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
25
b3bad142 26-all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config
90d756fb 27+all: libpng.a png.dll libpng-config
40bdedea 28
29 libpng.a: $(OBJS)
b3bad142 30 $(AR_RC) $@ $(OBJS)
40bdedea 31 $(RANLIB) $@
32
33+png.dll: $(OBJS)
90d756fb 34+ $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o png.dll -Wl,--out-implib,libpng.dll.a -lz
40bdedea 35+
36 libpng.pc:
b3bad142 37 cat scripts/libpng.pc.in | sed -e "s,@prefix@,$(prefix),;s,@exec_prefix@,$(exec_prefix),;s,@libdir@,$(LIBPATH),;s,@includedir@,$(INCPATH),;s,@PNGLIB_VERSION@,$(PNGMIN),;s,@PNGLIB_MAJOR@,12," > libpng.pc
40bdedea 38
This page took 0.097235 seconds and 4 git commands to generate.