]> git.pld-linux.org Git - packages/crossmingw32-libpng.git/blame - crossmingw32-libpng-shared.patch
- fix alpha, sparc
[packages/crossmingw32-libpng.git] / crossmingw32-libpng-shared.patch
CommitLineData
40bdedea 1diff -ruN libpng-1.2.6beta2./Makefile libpng-1.2.6beta2/Makefile
2--- libpng-1.2.6beta2./Makefile 2003-12-25 15:41:53.000000000 +0100
3+++ libpng-1.2.6beta2/Makefile 2003-12-25 15:43:53.920897736 +0100
4@@ -93,12 +93,15 @@
5 .c.pic.o:
6 $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
7
8-all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config
9+all: libpng.a png.dll libpng.pc libpng-config
10
11 libpng.a: $(OBJS)
12 $(AR) $(ARFLAGS) $@ $(OBJS)
13 $(RANLIB) $@
14
15+png.dll: $(OBJS)
16+ $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o png.dll -Wl,--out-implib,libpng.dll.a -lz
17+
18 libpng.pc:
19 cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
20
21diff -ruN libpng-1.2.6beta2./scripts/makefile.gcmmx libpng-1.2.6beta2/scripts/makefile.gcmmx
22--- libpng-1.2.6beta2./scripts/makefile.gcmmx 2003-12-25 15:41:53.000000000 +0100
23+++ libpng-1.2.6beta2/scripts/makefile.gcmmx 2003-12-25 15:43:53.920897736 +0100
24@@ -93,12 +93,15 @@
25 .c.pic.o:
26 $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
27
28-all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config
29+all: libpng.a png.dll pngtest pngtest-static libpng.pc libpng-config
30
31 libpng.a: $(OBJS)
32 $(AR) $(ARFLAGS) $@ $(OBJS)
33 $(RANLIB) $@
34
35+png.dll: $(OBJS)
36+ $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o png.dll -Wl,--out-implib,libpng.dll.a
37+
38 libpng.pc:
39 cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
40
This page took 0.08114 seconds and 4 git commands to generate.