commit:     4a1d8825ac850cc1a60868879c82fd642e896066
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Sep 12 04:47:22 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 12 13:51:05 2024 +0000
URL:        https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=4a1d8825

patches: g-debug: add old version hacked up as a roundup patch

This basically unlocks a bunch of new patches for affected libtool
versions:
- specs
- fsanitize
- fuse-ld
- werror
- color-record

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

 patches/g-debug/2.2.6-roundup | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/patches/g-debug/2.2.6-roundup b/patches/g-debug/2.2.6-roundup
new file mode 100644
index 0000000..bbf34ec
--- /dev/null
+++ b/patches/g-debug/2.2.6-roundup
@@ -0,0 +1,35 @@
+Roundup of a few more options, to unlock the entire series.
+- tp
+- sysroot
+- O, flto, fwhopr, fuse-linker-plugin
+
+From fbd9b32ef2bdf52729e29423732cc5c2fd4be563 Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <sch...@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 <eschwart...@gmail.com>
+---
+ ltmain.sh | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/ltmain.sh b/ltmain.sh
+index 247c739..61e3eaf 100644
+--- a/ltmain.sh
++++ b/ltmain.sh
+@@ -4796,8 +4796,12 @@ func_mode_link ()
+       # -F/path gives path to uninstalled frameworks, gcc on darwin
+       # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+       # @file GCC response files
++      # -tp=*                Portland pgcc target processor selection
++      # --sysroot=*          for sysroot support
++      # -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*|@*)
++      
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
++      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin)
+         func_quote_for_eval "$arg"
+       arg="$func_quote_for_eval_result"
+         func_append compile_command " $arg"

Reply via email to