From 418119d147082c5946977a882f719831d5e73323 Mon Sep 17 00:00:00 2001 From: Stephen L Arnold Date: Fri, 6 May 2016 13:06:24 -0700 Subject: [PATCH] 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 982dbca2c8c3..a6ea4623931f 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 2acd0555c4cf..e6507199b201 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). - - - Use gold linker and -flto (requires existing env setup) - - -- 2.26.2