sci-libs/libbufr: update config, remove lto use flag
authorStephen L Arnold <nerdboy@gentoo.org>
Fri, 6 May 2016 20:06:24 +0000 (13:06 -0700)
committerStephen L Arnold <nerdboy@gentoo.org>
Fri, 6 May 2016 20:06:24 +0000 (13:06 -0700)
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
sci-libs/libbufr/metadata.xml

index 982dbca2c8c3356a9f82827f2070f95b627756d0..a6ea4623931f3441ec8881411386892f1ad6c693 100644 (file)
@@ -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"
index 2acd0555c4cfa847da625eee6403193d627784ec..e6507199b20150e1bc254befdf168e50a0cd2abe 100644 (file)
@@ -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>