From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
Date: Sat, 5 Dec 2015 13:32:42 +0000 (UTC) [thread overview]
Message-ID: <1449322354.ee5d08bf305e68c8746a778777976b83358ec47d.jlec@gentoo> (raw)
commit: ee5d08bf305e68c8746a778777976b83358ec47d
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 5 13:32:34 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Dec 5 13:32:34 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ee5d08bf
sci-libs/atlas: Fix underlinking
Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
...tlas-3.11.38.ebuild => atlas-3.11.38-r1.ebuild} | 26 +++++++++++++---------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.11.38.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
similarity index 90%
rename from sci-libs/atlas/atlas-3.11.38.ebuild
rename to sci-libs/atlas/atlas-3.11.38-r1.ebuild
index e0e41ec..4a7d193 100644
--- a/sci-libs/atlas/atlas-3.11.38.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -143,11 +143,15 @@ atlas_install_libs() {
local libname=$(basename ${1%.*})
einfo "Installing ${libname}"
local soname=${libname}.so.$(get_major_version)
+ local _cmd
shift
pushd "${S}_shared"/lib > /dev/null
- ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
- -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
- "$@" -o ${soname} || die "Creating ${soname} failed"
+ _cmd="${LINK:-$(tc-getCC)}"
+ _cmd+=" ${LDFLAGS} -shared -Wl,--no-undefined -Wl,-soname=${soname}"
+ _cmd+=" -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive"
+ _cmd+=" $@ -o ${soname}"
+ einfo "${_cmd}"
+ ${_cmd} || die "Creating ${soname} failed"
dolib.so ${soname}
dosym ${soname} /usr/$(get_libdir)/${soname%.*}
popd > /dev/null || die
@@ -190,7 +194,7 @@ src_install() {
atlas_install_libs libatlas.a -lm ${PTLIBS}
# cblas
- atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_libs libatlcblas.a -L. -latlas -lm
atlas_install_pc atlcblas atlas-cblas
alternatives_for cblas atlas 0 \
/usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
@@ -198,7 +202,7 @@ src_install() {
# cblas threaded
if [[ -e libptcblas.a ]]; then
- atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_libs libptcblas.a -L. -latlas -lm ${PTLIBS}
atlas_install_pc ptcblas atlas-cblas-threads
alternatives_for cblas atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
@@ -208,12 +212,12 @@ src_install() {
if use lapack; then
PCREQ="cblas"
# clapack
- atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_libs libatlclapack.a -L. -latlcblas -latlas -lm
atlas_install_pc atlclapack atlas-clapack
# clapack threaded
if [[ -e libptclapack.a ]]; then
- atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_libs libptclapack.a -L. -lptcblas -latlas -lm ${PTLIBS}
atlas_install_pc ptclapack atlas-clapack-threads
fi
fi
@@ -222,14 +226,14 @@ src_install() {
LINK=$(tc-getF77) PCREQ=
# blas
- atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_libs libf77blas.a -L. -latlas -lm
atlas_install_pc f77blas atlas-blas
alternatives_for blas atlas 0 \
/usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
# blas threaded
if [[ -e libptf77blas.a ]]; then
- atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_libs libptf77blas.a -L. -latlas -lm ${PTLIBS}
atlas_install_pc ptf77blas atlas-blas-threads
alternatives_for blas atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
@@ -239,14 +243,14 @@ src_install() {
PCREQ="blas cblas"
# lapack
atlas_install_libs libatllapack.a \
- -lm -L. -latlas -latlcblas -lf77blas
+ -L. -latlcblas -lf77blas -latlas -lm
atlas_install_pc atllapack atlas-lapack
alternatives_for lapack atlas 0 \
/usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
# lapack threaded
if [[ -e libptlapack.a ]]; then
atlas_install_libs libptlapack.a \
- -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ -L. -lptcblas -lptf77blas -latlas -lm ${PTLIBS}
atlas_install_pc ptlapack atlas-lapack-threads
alternatives_for lapack atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
next reply other threads:[~2015-12-05 13:32 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-05 13:32 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-06-26 20:35 [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/ Justin Lecher
2017-02-03 10:25 Marius Brehler
2016-12-02 9:06 Marius Brehler
2016-09-07 13:15 Marius Brehler
2016-01-03 10:33 Alexey Shvetsov
2015-12-14 11:39 Justin Lecher
2015-12-08 15:25 Justin Lecher
2014-02-02 17:01 Reinis Danne
2014-01-28 19:01 Sebastien Fabbro
2013-10-14 9:38 Justin Lecher
2013-10-13 14:39 Justin Lecher
2013-05-23 5:13 Sebastien Fabbro
2013-02-25 1:20 Sebastien Fabbro
2013-02-20 19:09 Sebastien Fabbro
2013-01-28 22:51 Sebastien Fabbro
2012-07-10 21:28 Sebastien Fabbro
2012-06-26 22:27 Sebastien Fabbro
2012-06-18 22:01 Sebastien Fabbro
2012-06-07 16:35 Sebastien Fabbro
2012-05-07 15:09 Andrea Arteaga
2012-03-25 0:32 Andrea Arteaga
2012-03-16 21:41 Sebastien Fabbro
2012-02-23 19:05 Sebastien Fabbro
2012-02-20 23:21 Sebastien Fabbro
2012-02-16 4:26 Sebastien Fabbro
2011-10-12 15:29 Andrea Arteaga
2011-09-06 9:35 Andrea Arteaga
2011-08-15 17:18 Kacper Kowalik
2011-08-06 14:00 Alexey Shvetsov
2011-08-06 2:11 Andrea Arteaga
2011-08-06 0:25 Andrea Arteaga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449322354.ee5d08bf305e68c8746a778777976b83358ec47d.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox