diff options
author | jlam <jlam> | 2003-11-25 17:45:56 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-11-25 17:45:56 +0000 |
commit | 783a2d7996351f63906432bdd3f3061f4c0bf5f9 (patch) | |
tree | 9bea0115acc0d909014e0aeb489b03afb0bf7fdc /lang | |
parent | f3662751b1d614633233c00e82b7bd8739bb2aa4 (diff) | |
download | pkgsrc-783a2d7996351f63906432bdd3f3061f4c0bf5f9.tar.gz |
MakeMaker provides two hooks, INC and OTHERLDFLAGS, to pass options to the
compiler and linker. Use them to pass CPPFLAGS and LDFLAGS from pkgsrc.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5/module.mk | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk index bfb4bd153f6..3f46f4859be 100644 --- a/lang/perl5/module.mk +++ b/lang/perl5/module.mk @@ -1,4 +1,4 @@ -# $NetBSD: module.mk,v 1.23 2003/11/25 15:37:35 jlam Exp $ +# $NetBSD: module.mk,v 1.24 2003/11/25 17:45:56 jlam Exp $ # # This Makefile fragment is intended to be included by packages that build # and install perl5 modules. @@ -122,18 +122,21 @@ MAKE_FLAGS+= PREFIX="${PREFIX}" DEFAULT_VIEW.${PKGBASE}= ${DEFAULT_VIEW.perl} .endif -# OTHERLDFLAGS is the hook provided by the perl5 MakeMaker module to allow -# customizing the LDFLAGS passed to the compiler/linker. -# .if defined(PERL5_LDFLAGS) && !empty(PERL5_LDFLAGS) FIX_RPATH+= PERL5_LDFLAGS LDFLAGS+= ${PERL5_LDFLAGS} -. include "../../mk/bsd.prefs.mk" -. if ${OBJECT_FMT} == "a.out" +.endif + +.include "../../mk/bsd.prefs.mk" + +# MakeMaker provides two hooks, INC and OTHERLDFLAGS, to customize the +# arguments passed to the preprocessor and linker, respectively. +# +MAKE_FLAGS+= INC="${CPPFLAGS}" +.if ${OBJECT_FMT} == "a.out" MAKE_FLAGS+= OTHERLDFLAGS="${LDFLAGS:S/-Wl,//g}" -. else +.else MAKE_FLAGS+= OTHERLDFLAGS="${LDFLAGS}" -. endif .endif # Generate the PLIST from the files listed in PERL5_PACKLIST. |