summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-21 09:40:49 +0000
committerjlam <jlam>2004-01-21 09:40:49 +0000
commit25f5eaf3d8ab7ed75d13fd532d3708d9267ec3ca (patch)
tree0ed3cb2480a238cb93d79b46a976154bffe8166b /lang/perl5
parent7c3f1bc05292c3bc731c9f0e7f094d72f2ed3675 (diff)
downloadpkgsrc-25f5eaf3d8ab7ed75d13fd532d3708d9267ec3ca.tar.gz
Override OPTIMIZE instead of PASTHRU_INC to pass ${CFLAGS} and ${CPPFLAGS}
into the Perl module build. OPTIMIZE works for all versions of Perl.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/module.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index 79a1166d66d..e4ecfbda49a 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.32 2004/01/13 08:02:12 jlam Exp $
+# $NetBSD: module.mk,v 1.33 2004/01/21 09:40:49 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -99,11 +99,11 @@ FIX_RPATH+= PERL5_LDFLAGS
LDFLAGS+= ${PERL5_LDFLAGS}
.endif
-# MakeMaker provides two hooks, PASTHRU_INC and OTHERLDFLAGS, to
+# MakeMaker provides two hooks, OPTIMIZE and OTHERLDFLAGS, to
# customize the arguments passed to the preprocessor and linker,
# respectively.
#
-PERL5_MAKE_FLAGS+= PASTHRU_INC="${CPPFLAGS}"
+PERL5_MAKE_FLAGS+= OPTIMIZE="${CFLAGS} ${CPPFLAGS}"
.if ${OBJECT_FMT} == "a.out"
PERL5_MAKE_FLAGS+= OTHERLDFLAGS="${LDFLAGS:S/-Wl,//g}"
.else