sci-libs/arprec: Fi xunderlinking detected with ld.gold
authorJustin Lecher <jlec@gentoo.org>
Sun, 29 Jan 2017 19:58:49 +0000 (19:58 +0000)
committerJustin Lecher <jlec@gentoo.org>
Sun, 12 Feb 2017 10:09:24 +0000 (10:09 +0000)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
sci-libs/arprec/arprec-2.2.18.ebuild
sci-libs/arprec/files/arprec-2.2.18-gold.patch [new file with mode: 0644]
sci-libs/arprec/metadata.xml

index ef5837cd07baf0dd48ded86831e1ce2baed611ef..99d5159a9e38847c9f9d1a0e921cd862e15231c2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -7,7 +7,7 @@ EAPI=6
 FORTRAN_NEEDED=fortran
 FORTRAN_STANDARD=90
 
-inherit fortran-2
+inherit autotools fortran-2
 
 DESCRIPTION="Arbitrary precision float arithmetics and functions"
 HOMEPAGE="http://crd-legacy.lbl.gov/~dhbailey/mpdist/"
@@ -21,7 +21,15 @@ IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 doc fortran qd static-libs"
 DEPEND="qd? ( sci-libs/qd[fortran=] )"
 RDEPEND="${DEPEND}"
 
-PATCHES=( "${FILESDIR}"/${PN}-2.2.18-fix-c++14.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.2.18-fix-c++14.patch
+       "${FILESDIR}"/${P}-gold.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
 
 src_configure() {
        econf \
diff --git a/sci-libs/arprec/files/arprec-2.2.18-gold.patch b/sci-libs/arprec/files/arprec-2.2.18-gold.patch
new file mode 100644 (file)
index 0000000..293b495
--- /dev/null
@@ -0,0 +1,15 @@
+ fortran/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/fortran/Makefile.am b/fortran/Makefile.am
+index 8eb4d19..91a125c 100644
+--- a/fortran/Makefile.am
++++ b/fortran/Makefile.am
+@@ -4,6 +4,7 @@ LDADD = libarprec_f_main.la libarprecmod.la $(top_builddir)/src/libarprec.la $(F
+ lib_LTLIBRARIES = libarprecmod.la libarprec_f_main.la
+ libarprecmod_la_SOURCES = f_mp.cpp mp_mod.f mp_modm.f mp_modx.f
++libarprecmod_la_LIBADD = $(top_builddir)/src/libarprec.la $(FCLIBS)
+ libarprec_f_main_la_SOURCES = main.cpp
+ if UPCASE_MODULE
index d4b71b40e61d6e7c0e7193869652b8d7d1a1429c..55cd058d02de3db155307015d6fea66188e67380 100644 (file)
@@ -2,17 +2,17 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
   <maintainer type="person">
-  <email>grozin@gentoo.org</email>
-  <name>Andrey Grozin</name>
-</maintainer>
-<maintainer type="project">
-  <email>sci@gentoo.org</email>
-  <name>Gentoo Science Project</name>
+    <email>grozin@gentoo.org</email>
+    <name>Andrey Grozin</name>
   </maintainer>
-<longdescription>
+  <maintainer type="project">
+    <email>sci@gentoo.org</email>
+    <name>Gentoo Science Project</name>
+  </maintainer>
+  <longdescription>
   Arbitrary precision library for float arithmetics and mathematical functions.
 </longdescription>
-<use>
-  <flag name="qd">Use <pkg>sci-libs/qd</pkg> for quad-double datatype</flag>
-</use>
+  <use>
+    <flag name="qd">Use <pkg>sci-libs/qd</pkg> for quad-double datatype</flag>
+  </use>
 </pkgmetadata>