gdb: resolve issue with libintl_gettext (#22478)
Co-authored-by: Robert Mijakovic <robert.mijakovic@lrz.de>
This commit is contained in:
parent
c41c7ce638
commit
0722f59cb2
2 changed files with 16 additions and 0 deletions
12
var/spack/repos/builtin/packages/gdb/gdb-libintl.patch
Normal file
12
var/spack/repos/builtin/packages/gdb/gdb-libintl.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff -Naur gdbserver/Makefile.in gdbserver/Makefile.in
|
||||||
|
--- gdbserver/Makefile.in 2020-10-24 06:23:02.000000000 +0200
|
||||||
|
+++ gdbserver/Makefile.in 2021-02-15 13:41:31.732000000 +0100
|
||||||
|
@@ -388,7 +388,7 @@
|
||||||
|
$(SILENCE) rm -f $(IPA_LIB)
|
||||||
|
$(ECHO_CXXLD) $(CC_LD) -shared -fPIC -Wl,--soname=$(IPA_LIB) \
|
||||||
|
-Wl,--no-undefined $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) \
|
||||||
|
- -o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread
|
||||||
|
+ -o $(IPA_LIB) ${IPA_OBJS} $(INTL) -ldl -pthread
|
||||||
|
|
||||||
|
# Put the proper machine-specific files first, so M-. on a machine
|
||||||
|
# specific routine gets the one for the correct machine.
|
|
@ -45,6 +45,10 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
|
||||||
variant('ld', default=False, description='Enable ld')
|
variant('ld', default=False, description='Enable ld')
|
||||||
variant('tui', default=False, description='Enable tui')
|
variant('tui', default=False, description='Enable tui')
|
||||||
|
|
||||||
|
# Resolves the undefined references to libintl_gettext while linking gdbserver
|
||||||
|
# https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined
|
||||||
|
patch('gdb-libintl.patch', level=0, when='@10.1')
|
||||||
|
|
||||||
# Required dependency
|
# Required dependency
|
||||||
depends_on('texinfo', type='build')
|
depends_on('texinfo', type='build')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue