summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-20 02:20:10 +0000
committerSam James <sam@gentoo.org>2021-03-20 02:20:10 +0000
commitefb09755aa2d0231c64b1564593345d160e9ad05 (patch)
treeaa6072c3b732ae1bc342ae26f661b16f56011c49 /sci-libs/hdf5
parentdev-util/pkgdev: drop 0.1 (diff)
downloadgentoo-efb09755aa2d0231c64b1564593345d160e9ad05.tar.gz
gentoo-efb09755aa2d0231c64b1564593345d160e9ad05.tar.bz2
gentoo-efb09755aa2d0231c64b1564593345d160e9ad05.zip
sci-libs/hdf5: fix build with slibtool
It's not completely clear how slibtool should've known to append -fPIC, but let's not worry too much for now. Closes: https://bugs.gentoo.org/775305 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/hdf5')
-rw-r--r--sci-libs/hdf5/hdf5-1.10.5-r1.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild b/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild
index c3fa2f27d0ca..5fb40889ca3c 100644
--- a/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild
+++ b/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
@@ -75,6 +75,9 @@ src_prepare() {
sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/src/misc/h5cc.in || die
hprefixify m4/libtool.m4
+ # bug #775305
+ use fortran && tc-enables-pie && append-fflags -fPIC
+
default
eautomake
}