From 6a58941b11bab2a4055fc28f5bbbcc0313eca2b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?=
 <lucia@luciaillanes.de>
Date: Tue, 22 Feb 2022 16:24:03 +0100
Subject: patches/gdb-7.12.local.patch: correctly install bin/gdb.

---
 patches/gdb-7.12.local.patch | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'patches')

diff --git a/patches/gdb-7.12.local.patch b/patches/gdb-7.12.local.patch
index f28cbef4..78905577 100644
--- a/patches/gdb-7.12.local.patch
+++ b/patches/gdb-7.12.local.patch
@@ -18,6 +18,15 @@
  # Where are the other opcode tables which only have header file
  # versions?
  OP_INCLUDE = $(INCLUDE_DIR)/opcode
+@@ -1244,7 +1244,7 @@
+ 		  true ; \
+ 		fi ; \
+ 		$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \
+-		$(INSTALL_PROGRAM) gdb$(EXEEXT) \
++		slibtool --mode=install $(INSTALL_PROGRAM) gdb$(EXEEXT) \
+ 			$(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
+ 		$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(includedir)/gdb ; \
+ 		$(INSTALL_DATA) jit-reader.h $(DESTDIR)$(includedir)/gdb/jit-reader.h
 @@ -1407,7 +1407,8 @@
  # Removing the old gdb first works better if it is running, at least on SunOS.
  gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
-- 
cgit v1.2.3