summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen L Arnold <nerdboy@gentoo.org>2016-05-06 13:06:24 -0700
committerStephen L Arnold <nerdboy@gentoo.org>2016-05-06 13:06:24 -0700
commit418119d147082c5946977a882f719831d5e73323 (patch)
tree64afc474c769318aba3df3b2d33a460d8d4cc6ac /sci-libs/libbufr
parentgames-simulation/pmars-sdl: add slot to sys-libs/ncurses (diff)
downloadgentoo-418119d147082c5946977a882f719831d5e73323.tar.gz
gentoo-418119d147082c5946977a882f719831d5e73323.tar.bz2
gentoo-418119d147082c5946977a882f719831d5e73323.zip
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
Diffstat (limited to 'sci-libs/libbufr')
-rw-r--r--sci-libs/libbufr/libbufr-000405.ebuild11
-rw-r--r--sci-libs/libbufr/metadata.xml5
2 files changed, 1 insertions, 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).
</longdescription>
- <use>
- <flag name="lto">
- Use gold linker and -flto (requires existing env setup)
- </flag>
- </use>
</pkgmetadata>