pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 Override OPTIMIZE instead of PASTHRU_INC to...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c50adbde1da6
branches:  trunk
changeset: 466612:c50adbde1da6
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Jan 21 09:40:49 2004 +0000

description:
Override OPTIMIZE instead of PASTHRU_INC to pass ${CFLAGS} and ${CPPFLAGS}
into the Perl module build.  OPTIMIZE works for all versions of Perl.

diffstat:

 lang/perl5/module.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 2c74f50a98f7 -r c50adbde1da6 lang/perl5/module.mk
--- a/lang/perl5/module.mk      Wed Jan 21 09:35:08 2004 +0000
+++ b/lang/perl5/module.mk      Wed Jan 21 09:40:49 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index