commit:     418119d147082c5946977a882f719831d5e73323
Author:     Stephen L Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Fri May  6 20:06:24 2016 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Fri May  6 20:06:24 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=418119d1

sci-libs/libbufr: update config, remove lto use flag

This also fixes bug 566518 ([TRACKER] use* functions called in global
scope).  Works cleanly with LTO/gold enabled.

Package-Manager: portage-2.2.28

 sci-libs/libbufr/libbufr-000405.ebuild | 11 +----------
 sci-libs/libbufr/metadata.xml          |  5 -----
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/sci-libs/libbufr/libbufr-000405.ebuild 
b/sci-libs/libbufr/libbufr-000405.ebuild
index 982dbca..a6ea462 100644
--- a/sci-libs/libbufr/libbufr-000405.ebuild
+++ b/sci-libs/libbufr/libbufr-000405.ebuild
@@ -17,7 +17,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
 # needs someone to test on these: ~alpha ~hppa ~ia64 ~sparc etc ...
 
-IUSE="debug doc examples lto"
+IUSE="debug doc examples"
 
 RDEPEND="
        virtual/fortran
@@ -27,10 +27,6 @@ DEPEND="sys-apps/findutils"
 
 S=${WORKDIR}/${MY_P}
 
-if use lto; then
-       RESTRICT="strip"
-fi
-
 pkg_setup() {
        fortran-2_pkg_setup
        case "$(tc-getFC)" in
@@ -115,11 +111,6 @@ src_compile() {
        TC_FLAGS="CC=$CC FC=$FC AR=$AR RANLIB=$RANLIB"
        ARFLAGS="rv"
 
-       if use lto; then
-               PLUGIN_PATH="--plugin=$(gcc -print-prog-name=liblto_plugin.so)"
-               tc-ld-is-gold && ARFLAGS="rv ${PLUGIN_PATH}"
-       fi
-
        # emake won't work with this fossil...
        BUFRFLAGS="ARCH=$target R64=$R64 CNAME=$CNAME"
        make $TC_FLAGS ARFLAGS="${ARFLAGS}" $BUFRFLAGS || die "make failed"

diff --git a/sci-libs/libbufr/metadata.xml b/sci-libs/libbufr/metadata.xml
index 2acd055..e650719 100644
--- a/sci-libs/libbufr/metadata.xml
+++ b/sci-libs/libbufr/metadata.xml
@@ -9,9 +9,4 @@
                and comes with a few example tools (some of which are built
                and installed).
        </longdescription>
-       <use>
-               <flag name="lto">
-                       Use gold linker and -flto (requires existing env setup)
-               </flag>
-       </use>
 </pkgmetadata>

Reply via email to