public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/elt-patches:master commit in: patches/g-debug/, /
@ 2024-02-13  8:16 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-02-13  8:16 UTC (permalink / raw
  To: gentoo-commits

commit:     92078e09ce8ad813128501ca04a91eb0f36b0599
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Feb 12 20:22:42 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 13 08:12:23 2024 +0000
URL:        https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=92078e09

patches: g-debug: add upstream patch for debug info

Goes well together with frecord-gcc-switches

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eltpatch.in           |  2 +-
 patches/g-debug/2.4.2 | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/eltpatch.in b/eltpatch.in
index b1a623c..08ab587 100644
--- a/eltpatch.in
+++ b/eltpatch.in
@@ -129,7 +129,7 @@ elibtoolize() {
 	local force="false"
 	local elt_patches="
 		install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm ppc64le
-		specs fsanitize fuse-ld static-flags werror cxx-pthread color-record sed-quote
+		g-debug specs fsanitize fuse-ld static-flags werror cxx-pthread color-record sed-quote
 	"
 
 	for x in "$@" ; do

diff --git a/patches/g-debug/2.4.2 b/patches/g-debug/2.4.2
new file mode 100644
index 0000000..afc7776
--- /dev/null
+++ b/patches/g-debug/2.4.2
@@ -0,0 +1,29 @@
+From 9b726f35db98da01a7edaf143788cba2c2ae900a Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <schwab@linux-m68k.org>
+Date: Tue, 21 Aug 2012 20:17:04 -0500
+Subject: [PATCH] Pass through -g* so that debugging information is not dropped
+
+* ltmain.m4sh (func_mode_link): Pass through -g*.
+
+Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
+---
+ build-aux/ltmain.m4sh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
+index 48e259b6..1d71f0e2 100644
+--- a/build-aux/ltmain.m4sh
++++ b/build-aux/ltmain.m4sh
+@@ -5090,11 +5090,11 @@ func_mode_link ()
+       # @file                GCC response files
+       # -tp=*                Portland pgcc target processor selection
+       # --sysroot=*          for sysroot support
+-      # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
++      # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+-      -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
++      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin)
+         func_quote_for_eval "$arg"
+ 	arg="$func_quote_for_eval_result"
+         func_append compile_command " $arg"


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-13  8:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13  8:16 [gentoo-commits] proj/elt-patches:master commit in: patches/g-debug/, / Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox