xref: /OK3568_Linux_fs/buildroot/package/gdb/10.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From c098500aee945ee7a3021649eb0a2655b004103c Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Thu, 18 Nov 2021 22:52:08 +0100
4Subject: [PATCH] gdbserver/Makefile.in: fix NLS build
5
6Fix the following build failure raised since gdb version 10.1 and
7https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9a665d62266e75f0519f3a663784c458885b5c63:
8
9  CXXLD  libinproctrace.so
10/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i586-buildroot-linux-musl/9.3.0/../../../../i586-buildroot-linux-musl/bin/ld: gdbsupport/tdesc-ipa.o: in function `print_xml_feature::visit(tdesc_type_builtin const*)':
11/home/buildroot/autobuild/instance-2/output-1/build/gdb-10.2/build/gdbserver/../../gdbserver/../gdbsupport/tdesc.cc:310: undefined reference to `libintl_gettext'
12
13Fixes:
14 - http://autobuild.buildroot.org/results/faacc874fe9d32b74cb3d3dea988ef661cb0e3d0
15
16Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
17[Upstream status:
18https://sourceware.org/pipermail/gdb-patches/2021-November/183580.html]
19---
20 gdbserver/Makefile.in | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
24index 71c3c4ad959..e69fbc4dae4 100644
25--- a/gdbserver/Makefile.in
26+++ b/gdbserver/Makefile.in
27@@ -383,7 +383,7 @@ $(IPA_LIB): $(sort $(IPA_OBJS)) ${CDEPS}
28	$(SILENCE) rm -f $(IPA_LIB)
29 	$(ECHO_CXXLD) $(CC_LD) -shared -fPIC -Wl,--soname=$(IPA_LIB) \
30 		-Wl,--no-undefined $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) \
31-		-o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread
32+		-o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread $(INTL)
33
34 # Put the proper machine-specific files first, so M-. on a machine
35 # specific routine gets the one for the correct machine.
36--
372.33.0
38
39