]> git.pld-linux.org Git - packages/crossmingw32-bzip2.git/blobdiff - crossmingw32-bzip2.patch
- adjusted patch instead of spec hacking
[packages/crossmingw32-bzip2.git] / crossmingw32-bzip2.patch
index fbb6cf05ef5ef810f608a60e1c8b316f589c61ae..21c67979f08e2e0cdafb3c204512f2196ef447bb 100644 (file)
@@ -65,21 +65,9 @@ diff -uNr bzip2-1.0.1/libbz2.def bzip2-1.0.1.good/libbz2.def
 +      BZ2_bzflush@4\r
 +      BZ2_bzclose@4\r
 +      BZ2_bzerror@8\r
-diff -uNr bzip2-1.0.1/Makefile bzip2-1.0.1.good/Makefile
---- bzip2-1.0.1/Makefile       2000-06-23 22:34:47.000000000 +0200
-+++ bzip2-1.0.1.good/Makefile  2003-08-27 16:21:27.380288320 +0200
-@@ -1,8 +1,8 @@
- SHELL=/bin/sh
--CC=gcc
-+CC=i386-mingw32-gcc
- BIGFILES=-D_FILE_OFFSET_BITS=64
--CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
-+CFLAGS=-I/usr/i386-mingw32/include -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES) -D_WIN32
- OBJS= blocksort.o  \
-       huffman.o    \
-@@ -12,7 +12,7 @@
+--- bzip2-1.0.6/Makefile.orig  2010-09-11 00:46:02.000000000 +0200
++++ bzip2-1.0.6/Makefile       2013-06-23 09:39:59.263591821 +0200
+@@ -35,7 +35,7 @@
        decompress.o \
        bzlib.o
  
@@ -87,27 +75,18 @@ diff -uNr bzip2-1.0.1/Makefile bzip2-1.0.1.good/Makefile
 +all: libbz2.a bzip2 bzip2recover
  
  bzip2: libbz2.a bzip2.o
-       $(CC) $(CFLAGS) -o bzip2 bzip2.o -L. -lbz2
-@@ -22,12 +22,7 @@
+       $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
+@@ -46,11 +46,8 @@
  libbz2.a: $(OBJS)
        rm -f libbz2.a
--      ar cq libbz2.a $(OBJS)
--      @if ( test -f /usr/bin/ranlib -o -f /bin/ranlib -o \
--              -f /usr/ccs/bin/ranlib ) ; then \
--              echo ranlib libbz2.a ; \
--              ranlib libbz2.a ; \
+       $(AR) cq libbz2.a $(OBJS)
+-      @if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \
+-              -f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \
+-              echo $(RANLIB) libbz2.a ; \
+-              $(RANLIB) libbz2.a ; \
 -      fi
-+      i386-mingw32-dllwrap --def libbz2.def --implib libbz2.a -o libbz2.dll $(OBJS)
++      $(RANLIB) libbz2.a
++      $(CC) -shared $(LDFLAGS) -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias -Wl,--out-implib,libbz2.dll.a -o bzip2.dll libbz2.def $(OBJS)
  
+ check: test
  test: bzip2
-       @cat words1
-@@ -69,7 +64,7 @@
-       chmod a+r $(PREFIX)/lib/libbz2.a
- clean: 
--      rm -f *.o libbz2.a bzip2 bzip2recover \
-+      rm -f *.o libbz2.dll libbz2.a bzip2.exe bzip2recover.exe \
-       sample1.rb2 sample2.rb2 sample3.rb2 \
-       sample1.tst sample2.tst sample3.tst
This page took 0.069205 seconds and 4 git commands to generate.