From 40bdedea5940d90145f593ccb62953c6dd5ba8cf Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 25 Dec 2003 15:04:36 +0000 Subject: [PATCH] - shared lib Changed files: crossmingw32-libpng-shared.patch -> 1.1 --- crossmingw32-libpng-shared.patch | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 crossmingw32-libpng-shared.patch diff --git a/crossmingw32-libpng-shared.patch b/crossmingw32-libpng-shared.patch new file mode 100644 index 0000000..4572156 --- /dev/null +++ b/crossmingw32-libpng-shared.patch @@ -0,0 +1,40 @@ +diff -ruN libpng-1.2.6beta2./Makefile libpng-1.2.6beta2/Makefile +--- libpng-1.2.6beta2./Makefile 2003-12-25 15:41:53.000000000 +0100 ++++ libpng-1.2.6beta2/Makefile 2003-12-25 15:43:53.920897736 +0100 +@@ -93,12 +93,15 @@ + .c.pic.o: + $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c + +-all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config ++all: libpng.a png.dll libpng.pc libpng-config + + libpng.a: $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + $(RANLIB) $@ + ++png.dll: $(OBJS) ++ $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o png.dll -Wl,--out-implib,libpng.dll.a -lz ++ + libpng.pc: + cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc + +diff -ruN libpng-1.2.6beta2./scripts/makefile.gcmmx libpng-1.2.6beta2/scripts/makefile.gcmmx +--- libpng-1.2.6beta2./scripts/makefile.gcmmx 2003-12-25 15:41:53.000000000 +0100 ++++ libpng-1.2.6beta2/scripts/makefile.gcmmx 2003-12-25 15:43:53.920897736 +0100 +@@ -93,12 +93,15 @@ + .c.pic.o: + $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c + +-all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config ++all: libpng.a png.dll pngtest pngtest-static libpng.pc libpng-config + + libpng.a: $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + $(RANLIB) $@ + ++png.dll: $(OBJS) ++ $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o png.dll -Wl,--out-implib,libpng.dll.a ++ + libpng.pc: + cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc + -- 2.44.0