summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2015-06-18 06:29:18 +0000
committerdholland <dholland@pkgsrc.org>2015-06-18 06:29:18 +0000
commita5b6499c13c830701dfa20fb84523e08f8effd40 (patch)
treea9ec6044170a261a2eaf79fc2b372ee113c3343c /pkgtools
parent58eea68ece9940bfac92806677588a6c082e7892 (diff)
downloadpkgsrc-a5b6499c13c830701dfa20fb84523e08f8effd40.tar.gz
Apply sbd's patch for PR 37380 to fix build failure on systems without
err(3) in libc.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/p5-pkgsrc-Dewey/Makefile4
-rw-r--r--pkgtools/p5-pkgsrc-Dewey/files/Makefile.PL1
2 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/p5-pkgsrc-Dewey/Makefile b/pkgtools/p5-pkgsrc-Dewey/Makefile
index 9fa604014f9..3013d4940f4 100644
--- a/pkgtools/p5-pkgsrc-Dewey/Makefile
+++ b/pkgtools/p5-pkgsrc-Dewey/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2015/06/12 10:50:55 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2015/06/18 06:29:18 dholland Exp $
PKGNAME= p5-pkgsrc-Dewey-1.1
PKGREVISION= 6
@@ -13,6 +13,8 @@ CPPFLAGS+= -DHAVE_CTYPE_H -DHAVE_STDLIB_H -DHAVE_STRING_H
CPPFLAGS.NetBSD+= -DHAVE_ERR_H
USE_LANGUAGES= c
+USE_FEATURES+= err
+MAKE_ENV+= LIBS=${LIBS:Q}
PERL5_PACKLIST= auto/pkgsrc/Dewey/.packlist
diff --git a/pkgtools/p5-pkgsrc-Dewey/files/Makefile.PL b/pkgtools/p5-pkgsrc-Dewey/files/Makefile.PL
index 9b1267d77b4..7669834283f 100644
--- a/pkgtools/p5-pkgsrc-Dewey/files/Makefile.PL
+++ b/pkgtools/p5-pkgsrc-Dewey/files/Makefile.PL
@@ -5,4 +5,5 @@ WriteMakefile(
VERSION_FROM => 'Dewey.pm', # finds $VERSION
INC => '-I.',
OBJECT => '$(O_FILES)', # link all the C files too
+ LIBS => "$ENV{LDFLAGS} $ENV{LIBS}", # for -lnbcompat
);