diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-21 09:40:49 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-21 09:40:49 +0000 |
commit | bc9660dc1e70ad68b5142baa7ff8135108ce79c5 (patch) | |
tree | 0ed3cb2480a238cb93d79b46a976154bffe8166b /lang/perl5 | |
parent | 9e4957ec9582027b8065d5cd28a79aca3254292a (diff) | |
download | pkgsrc-bc9660dc1e70ad68b5142baa7ff8135108ce79c5.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.mk | 6 |
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 |