From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B84D5158086 for ; Tue, 19 Oct 2021 03:21:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0103CE0830; Tue, 19 Oct 2021 03:21:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8893AE0830 for ; Tue, 19 Oct 2021 03:21:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A74034394F for ; Tue, 19 Oct 2021 03:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B885C156 for ; Tue, 19 Oct 2021 03:21:19 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1634613673.a9bf59f3fd6ef919eab913ef1d799c093f178081.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libaio/, dev-libs/libaio/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libaio/files/libaio-0.3.112-respect-LDFLAGS.patch dev-libs/libaio/libaio-0.3.112.ebuild dev-libs/libaio/libaio-9999.ebuild X-VCS-Directories: dev-libs/libaio/files/ dev-libs/libaio/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a9bf59f3fd6ef919eab913ef1d799c093f178081 X-VCS-Branch: master Date: Tue, 19 Oct 2021 03:21:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 735f834c-9f64-4b57-b06e-022b72a68572 X-Archives-Hash: 87a9737fb9941113fb118d893735aea4 commit: a9bf59f3fd6ef919eab913ef1d799c093f178081 Author: Sam James gentoo org> AuthorDate: Tue Oct 19 03:19:23 2021 +0000 Commit: Sam James gentoo 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 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() {