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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 35E5C15802F for ; Sun, 2 Apr 2023 11:44:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7562BE07F2; Sun, 2 Apr 2023 11:44:41 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 46D79E07F2 for ; Sun, 2 Apr 2023 11:44:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D8E9340E26 for ; Sun, 2 Apr 2023 11:44:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9EC378EB for ; Sun, 2 Apr 2023 11:44:38 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1680435814.b359e23310a3269a6b25f49fa0c962364ece0fc5.dilfridge@gentoo> Subject: [gentoo-commits] proj/toolchain/binutils-patches:master commit in: 9999/ X-VCS-Repository: proj/toolchain/binutils-patches X-VCS-Files: 9999/0007-Apply-a-similar-libiberty-fix-as-in-7d53105d-for-lib.patch X-VCS-Directories: 9999/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: b359e23310a3269a6b25f49fa0c962364ece0fc5 X-VCS-Branch: master Date: Sun, 2 Apr 2023 11:44:38 +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: 2086706f-7ead-4efc-ab70-191eac6ec663 X-Archives-Hash: 3266ef0dd0005269e839cc90c0444e7a commit: b359e23310a3269a6b25f49fa0c962364ece0fc5 Author: Andreas K. Hüttel gentoo org> AuthorDate: Sun Apr 2 11:43:34 2023 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sun Apr 2 11:43:34 2023 +0000 URL: https://gitweb.gentoo.org/proj/toolchain/binutils-patches.git/commit/?id=b359e233 Apply build fix for libiberty to libopcodes and libgprofng To be upstreamed properly Bug: https://bugs.gentoo.org/834720 Signed-off-by: Andreas K. Hüttel gentoo.org> ...ilar-libiberty-fix-as-in-7d53105d-for-lib.patch | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/9999/0007-Apply-a-similar-libiberty-fix-as-in-7d53105d-for-lib.patch b/9999/0007-Apply-a-similar-libiberty-fix-as-in-7d53105d-for-lib.patch new file mode 100644 index 0000000..d915528 --- /dev/null +++ b/9999/0007-Apply-a-similar-libiberty-fix-as-in-7d53105d-for-lib.patch @@ -0,0 +1,84 @@ +From afc5e9fab399c9164f7355b69d0e23318d0559a5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= +Date: Wed, 22 Feb 2023 20:05:35 +0100 +Subject: [PATCH] Apply a similar libiberty fix as in 7d53105d for libopcodes + and libgprofng +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29042 +Bug: https://bugs.gentoo.org/834720 +Signed-off-by: Andreas K. Hüttel +--- + gprofng/src/Makefile.am | 3 ++- + gprofng/src/Makefile.in | 3 ++- + opcodes/configure | 4 ++-- + opcodes/configure.ac | 4 ++-- + 4 files changed, 8 insertions(+), 6 deletions(-) + +diff --git a/gprofng/src/Makefile.am b/gprofng/src/Makefile.am +index ab90bb08c5f..96256faf788 100644 +--- a/gprofng/src/Makefile.am ++++ b/gprofng/src/Makefile.am +@@ -131,7 +131,8 @@ libgprofng_la_LDFLAGS = -version-info 0:0:0 + # Pass -lpthread instead of $(PTHREAD_LIBS) due to $(PTHREAD_LIBS) being empty + # when -nostdlib is passed to libtool. + # See bug 29364 - libgprofng.so: needs to link against -pthread +-libgprofng_la_LIBADD = $(top_builddir)/../opcodes/libopcodes.la \ ++libgprofng_la_LIBADD = $(GPROFNG_LIBADD) \ ++ $(top_builddir)/../opcodes/libopcodes.la \ + $(top_builddir)/../bfd/libbfd.la \ + $(GPROFNG_LIBADD) \ + -lpthread -ldl +diff --git a/gprofng/src/Makefile.in b/gprofng/src/Makefile.in +index 605fa4f6fd4..f968d8d6e59 100644 +--- a/gprofng/src/Makefile.in ++++ b/gprofng/src/Makefile.in +@@ -555,7 +555,8 @@ libgprofng_la_LDFLAGS = -version-info 0:0:0 + # Pass -lpthread instead of $(PTHREAD_LIBS) due to $(PTHREAD_LIBS) being empty + # when -nostdlib is passed to libtool. + # See bug 29364 - libgprofng.so: needs to link against -pthread +-libgprofng_la_LIBADD = $(top_builddir)/../opcodes/libopcodes.la \ ++libgprofng_la_LIBADD = $(GPROFNG_LIBADD) \ ++ $(top_builddir)/../opcodes/libopcodes.la \ + $(top_builddir)/../bfd/libbfd.la \ + $(GPROFNG_LIBADD) \ + -lpthread -ldl +diff --git a/opcodes/configure b/opcodes/configure +index d2364991ee8..1f483e37fc9 100755 +--- a/opcodes/configure ++++ b/opcodes/configure +@@ -12445,10 +12445,10 @@ if test "$enable_shared" = "yes"; then + case "${host}" in + *-*-cygwin*) + SHARED_LDFLAGS="-no-undefined" +- SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" ++ SHARED_LIBADD="$SHARED_LIBADD -L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" + ;; + *) +- SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" ++ SHARED_LIBADD="${SHARED_LIBADD} ../bfd/libbfd.la ${SHARED_LIBADD}" + SHARED_DEPENDENCIES="../bfd/libbfd.la" + ;; + esac +diff --git a/opcodes/configure.ac b/opcodes/configure.ac +index 1beb72e87e0..79310916f7d 100644 +--- a/opcodes/configure.ac ++++ b/opcodes/configure.ac +@@ -193,10 +193,10 @@ if test "$enable_shared" = "yes"; then + case "${host}" in + *-*-cygwin*) + SHARED_LDFLAGS="-no-undefined" +- SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" ++ SHARED_LIBADD="$SHARED_LIBADD -L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" + ;; + *) +- SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" ++ SHARED_LIBADD="${SHARED_LIBADD} ../bfd/libbfd.la ${SHARED_LIBADD}" + SHARED_DEPENDENCIES="../bfd/libbfd.la" + ;; + esac +-- +2.39.2 +