From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libaio/, dev-libs/libaio/files/
Date: Tue, 19 Oct 2021 03:21:19 +0000 (UTC) [thread overview]
Message-ID: <1634613673.a9bf59f3fd6ef919eab913ef1d799c093f178081.sam@gentoo> (raw)
commit: a9bf59f3fd6ef919eab913ef1d799c093f178081
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 19 03:19:23 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 19 03:21:13 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9bf59f3
dev-libs/libaio: fix LDFLAGS ordering
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/libaio/files/libaio-0.3.112-respect-LDFLAGS.patch | 13 +++++++++++++
dev-libs/libaio/libaio-0.3.112.ebuild | 1 +
dev-libs/libaio/libaio-9999.ebuild | 3 ++-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/dev-libs/libaio/files/libaio-0.3.112-respect-LDFLAGS.patch b/dev-libs/libaio/files/libaio-0.3.112-respect-LDFLAGS.patch
new file mode 100644
index 00000000000..20e23874fb6
--- /dev/null
+++ b/dev-libs/libaio/files/libaio-0.3.112-respect-LDFLAGS.patch
@@ -0,0 +1,13 @@
+We need to place LDFLAGS earlier to ensure e.g. as-needed works correctly.
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -56,7 +56,7 @@ libaio.a: $(libaio_objs)
+ $(RANLIB) libaio.a
+
+ $(libname): $(libaio_sobjs) libaio.map
+- $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
++ $(CC) $(SO_CFLAGS) $(LINK_FLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs)
+
+ install: $(all_targets)
+ install -D -m 644 libaio.h $(includedir)/libaio.h
+
diff --git a/dev-libs/libaio/libaio-0.3.112.ebuild b/dev-libs/libaio/libaio-0.3.112.ebuild
index 93a8952b8ee..a83b08bd982 100644
--- a/dev-libs/libaio/libaio-0.3.112.ebuild
+++ b/dev-libs/libaio/libaio-0.3.112.ebuild
@@ -22,6 +22,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-0.3.112-cppflags.patch
"${FILESDIR}"/${PN}-0.3.111-optional-werror.patch
+ "${FILESDIR}"/${PN}-0.3.112-respect-LDFLAGS.patch
)
src_prepare() {
diff --git a/dev-libs/libaio/libaio-9999.ebuild b/dev-libs/libaio/libaio-9999.ebuild
index 6ddf6077967..232c5368187 100644
--- a/dev-libs/libaio/libaio-9999.ebuild
+++ b/dev-libs/libaio/libaio-9999.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"
@@ -22,6 +22,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-0.3.112-cppflags.patch
"${FILESDIR}"/${PN}-0.3.111-optional-werror.patch
+ "${FILESDIR}"/${PN}-0.3.112-respect-LDFLAGS.patch
)
src_prepare() {
next reply other threads:[~2021-10-19 3:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 3:21 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-06-04 0:07 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libaio/, dev-libs/libaio/files/ Thomas Deutschmann
2019-04-24 22:39 Göktürk Yüksek
2019-04-24 22:39 Göktürk Yüksek
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=1634613673.a9bf59f3fd6ef919eab913ef1d799c093f178081.sam@gentoo \
--to=sam@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