Index: perl-module.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v --- perl-module.eclass 30 Mar 2014 19:25:14 -0000 1.139 +++ perl-module.eclass 21 Jun 2014 15:50:52 -0000 @@ -139,6 +139,8 @@ --libdoc= \ --destdir="${D}" \ --create_packlist=0 \ + --config "optimize=${CFLAGS}" \ + --config "lddlflags=-shared ${LDFLAGS}" \ "${myconf_local[@]}" einfo "perl Build.PL" "$@" perl Build.PL "$@" <<< "${pm_echovar}" \ @@ -150,6 +152,8 @@ INSTALLDIRS=vendor \ INSTALLMAN3DIR='none' \ DESTDIR="${D}" \ + OPTIMIZE="${CFLAGS}" \ + LDDLFLAGS="-shared ${LDFLAGS}" \ "${myconf_local[@]}" einfo "perl Makefile.PL" "$@" perl Makefile.PL "$@" <<< "${pm_echovar}" \ @@ -178,12 +182,12 @@ || die "Compilation failed" elif [[ -f Makefile ]] ; then set -- \ - OTHERLDFLAGS="${LDFLAGS}" \ + OPTIMIZE="${CFLAGS}" \ + LDDLFLAGS="-shared ${LDFLAGS}" \ "${mymake_local[@]}" einfo "emake" "$@" emake "$@" \ || die "Compilation failed" -# OPTIMIZE="${CFLAGS}" \ fi }