]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/build] Add gdb subdirs in gdb.pot
authorTom de Vries <tdevries@suse.de>
Mon, 8 Dec 2025 08:30:25 +0000 (09:30 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 8 Dec 2025 08:30:25 +0000 (09:30 +0100)
I found that gettext strings from gdb/cli are not added to gdb.pot.

Fix this by explicitly listing the gdb subdirs in the po/$(PACKAGE).pot rule
in gdb/Makefile.in.

Tested by doing:
...
$ cd build/gdb
$ make po/gdb.pot
  ...
$ grep -c cli/ po/gdb.pot
345
...

gdb/Makefile.in

index ed29f1703cd825e0296b06689f55d5391319ca42..daed1ec12f994d026e6dc7050dcc574b2fdd9f09 100644 (file)
@@ -2705,7 +2705,8 @@ $(PACKAGE).pot: po/$(PACKAGE).pot
 po/$(PACKAGE).pot: force
        -test -d po || mkdir po
        sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir) \
-         $(srcdir)/../gdbsupport $(srcdir)/../gdbserver
+         $(srcdir)/../gdbsupport $(srcdir)/../gdbserver \
+         $(addprefix $(srcdir)/,$(CONFIG_SRC_SUBDIR))
 
 
 #