]> git.pld-linux.org Git - packages/crossmingw32-libpng.git/blame - crossmingw32-libpng-shared.patch
- rel 2 to rebuild with gcc 3.4.2
[packages/crossmingw32-libpng.git] / crossmingw32-libpng-shared.patch
CommitLineData
90d756fb
JB
1--- libpng-1.2.6/scripts/makefile.gcmmx.orig 2004-08-30 20:57:04.085826112 +0200
2+++ libpng-1.2.6/scripts/makefile.gcmmx 2004-08-30 21:15:26.422245504 +0200
3@@ -92,12 +92,15 @@
40bdedea 4 .c.pic.o:
5 $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
6
7-all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config
90d756fb 8+all: libpng.a png.dll libpng-config
40bdedea 9
10 libpng.a: $(OBJS)
90d756fb 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:
90d756fb 18 cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! -e s\!@LIBPATH@!$(LIBPATH)! > libpng.pc
40bdedea 19
90d756fb
JB
20--- libpng-1.2.6/scripts/makefile.linux.orig 2004-08-30 20:57:04.083826000 +0200
21+++ libpng-1.2.6/scripts/makefile.linux 2004-08-30 21:16:34.527891872 +0200
22@@ -71,12 +71,15 @@
40bdedea 23 .c.pic.o:
24 $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
25
26-all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config
90d756fb 27+all: libpng.a png.dll libpng-config
40bdedea 28
29 libpng.a: $(OBJS)
90d756fb 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:
90d756fb 37 cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! -e s\!@LIBPATH@!$(LIBPATH)! > libpng.pc
40bdedea 38
This page took 0.034364 seconds and 4 git commands to generate.