]> git.pld-linux.org Git - packages/crossmingw32-libpng.git/blob - crossmingw32-libpng-shared.patch
- updated to 1.2.28
[packages/crossmingw32-libpng.git] / crossmingw32-libpng-shared.patch
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 @@
4  .c.pic.o:
5         $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
6  
7 -all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config
8 +all: libpng.a png.dll libpng-config
9  
10  libpng.a: $(OBJS)
11         $(AR_RC) $@ $(OBJS)
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:
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
19  
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 @@
23  .c.pic.o:
24         $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
25  
26 -all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config
27 +all: libpng.a png.dll libpng-config
28  
29  libpng.a: $(OBJS)
30         $(AR_RC) $@ $(OBJS)
31         $(RANLIB) $@
32  
33 +png.dll: $(OBJS)
34 +       $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o png.dll -Wl,--out-implib,libpng.dll.a -lz
35 +
36  libpng.pc:
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
38  
This page took 0.076314 seconds and 3 git commands to generate.