--- /usr/portage/eclass/perl-module.eclass 2011-01-30 09:31:06.000000000 +0100 +++ perl-module.eclass 2011-08-07 18:30:28.000000000 +0200 @@ -136,6 +136,7 @@ INSTALLDIRS=vendor \ INSTALLMAN3DIR='none' \ DESTDIR="${D}" \ + OPTIMIZE="${CFLAGS}" \ "${myconf_local[@]}" einfo "perl Makefile.PL" "$@" perl Makefile.PL "$@" <<< "${pm_echovar}" \ @@ -164,12 +165,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 }