Index: perl-module.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v retrieving revision 1.139 diff -u -B -r1.139 perl-module.eclass --- perl-module.eclass 30 Mar 2014 19:25:14 -0000 1.139 +++ perl-module.eclass 18 Jun 2014 23:10:29 -0000 @@ -12,7 +12,7 @@ # The perl-module eclass is designed to allow easier installation of perl # modules, and their incorporation into the Gentoo Linux system. -inherit eutils multiprocessing unpacker +inherit multilib eutils multiprocessing unpacker [[ ${CATEGORY} == "perl-core" ]] && inherit alternatives PERL_EXPF="src_unpack src_compile src_test src_install" @@ -150,6 +150,7 @@ INSTALLDIRS=vendor \ INSTALLMAN3DIR='none' \ DESTDIR="${D}" \ + OPTIMIZE="${CFLAGS}" \ "${myconf_local[@]}" einfo "perl Makefile.PL" "$@" perl Makefile.PL "$@" <<< "${pm_echovar}" \ @@ -178,12 +179,13 @@ || die "Compilation failed" elif [[ -f Makefile ]] ; then set -- \ + LD_RUN_PATH=${EPREFIX}/usr/$(get_libdir) \ OTHERLDFLAGS="${LDFLAGS}" \ + OPTIMIZE="${CFLAGS}" \ "${mymake_local[@]}" einfo "emake" "$@" emake "$@" \ || die "Compilation failed" -# OPTIMIZE="${CFLAGS}" \ fi }