diff options
author | sbd <sbd> | 2012-11-07 03:58:00 +0000 |
---|---|---|
committer | sbd <sbd> | 2012-11-07 03:58:00 +0000 |
commit | 45c2cd39527e99fb25e223bcce969e4cb5487366 (patch) | |
tree | 4ac85b4bc387f602a8298ead209d4e1cbbd12e60 /lang/perl5 | |
parent | aefa6716cf34a332dbe23f68121ed1f33cd4cb7b (diff) | |
download | pkgsrc-45c2cd39527e99fb25e223bcce969e4cb5487366.tar.gz |
Set ccflags and ldflags in Policy.sh instead of with CONFIGURE_ARGS.
Diffstat (limited to 'lang/perl5')
-rw-r--r-- | lang/perl5/Makefile | 5 | ||||
-rw-r--r-- | lang/perl5/files/Policy.sh | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile index f4f28bb9073..3df227cbddc 100644 --- a/lang/perl5/Makefile +++ b/lang/perl5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.190 2012/11/07 02:46:19 sbd Exp $ +# $NetBSD: Makefile,v 1.191 2012/11/07 03:58:00 sbd Exp $ .include "license.mk" .include "Makefile.common" @@ -45,8 +45,6 @@ PERL5_API_VERS_cmd= \ HAS_CONFIGURE= yes CONFIGURE_SCRIPT= ./Configure CONFIGURE_ARGS+= -sde -CONFIGURE_ARGS+= -D ccflags=${CFLAGS:Q} -CONFIGURE_ARGS+= -D ldflags=${LDFLAGS:Q} MAKE_ENV+= LC_ALL="C" TEST_TARGET= test @@ -61,6 +59,7 @@ SUBST_VARS.policysh+= LOWER_OPSYS SUBST_VARS.policysh+= OBJECT_FMT SUBST_VARS.policysh+= CC SUBST_VARS.policysh+= CFLAGS +SUBST_VARS.policysh+= LDFLAGS SUBST_VARS.policysh+= COMPILER_RPATH_FLAG SUBST_VARS.policysh+= PERL5_PREFIX SUBST_VARS.policysh+= PERL5_SITEPREFIX diff --git a/lang/perl5/files/Policy.sh b/lang/perl5/files/Policy.sh index cdba25b2295..d203fe33865 100644 --- a/lang/perl5/files/Policy.sh +++ b/lang/perl5/files/Policy.sh @@ -1,11 +1,13 @@ -# $NetBSD: Policy.sh,v 1.4 2012/11/07 02:46:19 sbd Exp $ +# $NetBSD: Policy.sh,v 1.5 2012/11/07 03:58:00 sbd Exp $ # # Site-wide policy settings for pkgsrc Perl # archname='@MACHINE_ARCH@-@LOWER_OPSYS@' cc='@CC@' -if $test -n '@CFLAGS@'; then - optimize='@CFLAGS@' +ccflags='@CFLAGS@' +ldflags='@LDFLAGS@' +if $test -n "$ccflags"; then + optimize="$ccflags" fi i_malloc='undef' installusrbinperl='undef' |