]> git.pld-linux.org Git - packages/crossmingw32-libpng.git/blob - crossmingw32-libpng-shared.patch
- rel 2 to rebuild with gcc 3.4.2
[packages/crossmingw32-libpng.git] / crossmingw32-libpng-shared.patch
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 @@
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
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)! -e s\!@LIBPATH@!$(LIBPATH)! > libpng.pc
19  
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 @@
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
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)! -e s\!@LIBPATH@!$(LIBPATH)! > libpng.pc
38  
This page took 0.029875 seconds and 3 git commands to generate.