pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/unzip move linker arguments around so that a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/73dcf42c6300
branches:  trunk
changeset: 466707:73dcf42c6300
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Jan 22 12:25:59 2004 +0000

description:
move linker arguments around so that always ${LDFLAGS} comes
before -lz, ensuring we only link against pkgsrc libz.

fixes a problem on Solaris where the linker would find and use
/usr/lib/libz.so *and* ${LOCALBASE}/lib/libz.so which fails at
runtime because the versions differ.

diffstat:

 archivers/unzip/Makefile         |   6 +++---
 archivers/unzip/distinfo         |   4 ++--
 archivers/unzip/patches/patch-ab |  17 +++++++++++++----
 3 files changed, 18 insertions(+), 9 deletions(-)

diffs (67 lines):

diff -r b270f804ee78 -r 73dcf42c6300 archivers/unzip/Makefile
--- a/archivers/unzip/Makefile  Thu Jan 22 12:21:23 2004 +0000
+++ b/archivers/unzip/Makefile  Thu Jan 22 12:25:59 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2004/01/20 12:07:07 agc Exp $
+# $NetBSD: Makefile,v 1.46 2004/01/22 12:25:59 grant Exp $
 
 DISTNAME=      unzip550
 PKGNAME=       unzip-5.50
@@ -27,9 +27,9 @@
 MAKEFILE=      unix/Makefile
 ALL_TARGET=    generic_zlib unzipsfx
 .if ${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin"
-MAKE_FLAGS=    CF="${CFLAGS} -I. -DBSD -DUNIX -Dunix -DUSE_UNSHRINK" LF2="-lz ${_STRIPFLAG_CC} ${LDFLAGS}"
+MAKE_FLAGS=    CF="${CFLAGS} -I. -DBSD -DUNIX -Dunix -DUSE_UNSHRINK" LF2="${_STRIPFLAG_CC} ${LDFLAGS} -lz"
 .else
-MAKE_FLAGS=    CF="${CFLAGS} -I. -DUNIX -Dunix -DUSE_UNSHRINK" LF2="-lz ${_STRIPFLAG_CC} ${LDFLAGS}"
+MAKE_FLAGS=    CF="${CFLAGS} -I. -DUNIX -Dunix -DUSE_UNSHRINK" LF2="${_STRIPFLAG_CC} ${LDFLAGS} -lz"
 .endif
 
 INSTALLATION_DIRS=     bin man/man1 share/doc
diff -r b270f804ee78 -r 73dcf42c6300 archivers/unzip/distinfo
--- a/archivers/unzip/distinfo  Thu Jan 22 12:21:23 2004 +0000
+++ b/archivers/unzip/distinfo  Thu Jan 22 12:25:59 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.8 2003/08/26 13:02:15 tron Exp $
+$NetBSD: distinfo,v 1.9 2004/01/22 12:25:59 grant Exp $
 
 SHA1 (unzip550.tar.gz) = 51034a8098eddc8facb4db9ea1a935e813dbdb73
 Size (unzip550.tar.gz) = 1068662 bytes
 SHA1 (unzip_5.50-1woody2.diff.gz) = 2988b7954203f9e192e2cdbf590673c6ba986296
 Size (unzip_5.50-1woody2.diff.gz) = 5049 bytes
 SHA1 (patch-aa) = a90ed5bb96f5b1c1be4ef5ddc952edb364fa7a05
-SHA1 (patch-ab) = 17be71eb0c670f20d0872c215fbadf637b471b96
+SHA1 (patch-ab) = dd426fdf4b774bd73f4ee46da470ffa3c2cf6513
diff -r b270f804ee78 -r 73dcf42c6300 archivers/unzip/patches/patch-ab
--- a/archivers/unzip/patches/patch-ab  Thu Jan 22 12:21:23 2004 +0000
+++ b/archivers/unzip/patches/patch-ab  Thu Jan 22 12:25:59 2004 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.4 2002/08/25 21:49:26 jlam Exp $
+$NetBSD: patch-ab,v 1.5 2004/01/22 12:25:59 grant Exp $
 
---- unix/Makefile.orig Sun Feb 17 04:00:38 2002
-+++ unix/Makefile      Wed Jul 17 04:50:03 2002
+--- unix/Makefile.orig 2002-02-17 04:00:38.000000000 +1100
++++ unix/Makefile
 @@ -42,7 +42,7 @@
  # such as -DDOSWILD).
  
@@ -11,7 +11,16 @@
  LD = $(CC)#   must match, else "unresolved symbol:  ___main" is possible)
  AS = as
  LOC = $(LOCAL_UNZIP)
-@@ -613,7 +613,7 @@
+@@ -552,7 +552,7 @@ generic3:  unix_make  # third try if unkn
+ generic_zlib: unix_make
+       @echo\
+  "This target assumes zlib (libz.a or libz.so.*) is already installed."
+-      $(MAKE) unzip funzip CF="$(CF) -DUSE_ZLIB" LF2="-lz $(LF2)"
++      $(MAKE) unzip funzip CF="$(CF) -DUSE_ZLIB" LF2="$(LF2)"
+ 
+ # Generic GNU C shared library.  This is an example of how to compile UnZip as
+ # a shared library.  (Doing so as a static library would be similar.)  See also
+@@ -613,7 +613,7 @@ vax:               unzips  # general-purpose VAX targe
  bsd:          _bsd    # generic BSD (BSD 4.2 & Ultrix handled in unzip.h)
  
  _bsd:         unix_make



Home | Main Index | Thread Index | Old Index