From e959dbc77cb0c4efb6b863d552d80648b66d297f Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 14 Jan 2005 13:08:51 +0000 Subject: Fix build on 1.6.2 by respecting LDFLAGS (and CXXFLAGS, while I am here). --- archivers/pbzip2/distinfo | 3 ++- archivers/pbzip2/patches/patch-aa | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 archivers/pbzip2/patches/patch-aa diff --git a/archivers/pbzip2/distinfo b/archivers/pbzip2/distinfo index d15efd0a65c..de170bca5c6 100644 --- a/archivers/pbzip2/distinfo +++ b/archivers/pbzip2/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/01/12 13:45:27 wiz Exp $ +$NetBSD: distinfo,v 1.2 2005/01/14 13:08:51 wiz Exp $ SHA1 (pbzip2-0.8.3.tar.gz) = d1b9aaa822b196f572eeabf9f501957093cb3466 Size (pbzip2-0.8.3.tar.gz) = 13145 bytes +SHA1 (patch-aa) = c937d872b3c35d6e162df7f61f6698e0e538a54b diff --git a/archivers/pbzip2/patches/patch-aa b/archivers/pbzip2/patches/patch-aa new file mode 100644 index 00000000000..0ed4c7426c7 --- /dev/null +++ b/archivers/pbzip2/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1 2005/01/14 13:08:51 wiz Exp $ + +--- Makefile.orig 2005-01-09 19:58:48.000000000 +0100 ++++ Makefile +@@ -1,10 +1,9 @@ + # Make file for parallel BZIP2 +-CC=g++ + + all: pbzip2 + + pbzip2: pbzip2.cpp +- $(CC) -O3 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o pbzip2 pbzip2.cpp -pthread -lpthread -lbz2 ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o pbzip2 pbzip2.cpp -pthread -lpthread -lbz2 + + pbzip2-static: libbz2.a pbzip2.cpp + $(CC) -O3 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o pbzip2 pbzip2.cpp -pthread -lpthread -L. -lbz2 -- cgit v1.2.3