Skip to content

Commit 998ad4d

Browse files
committed
cross-gdb: Add Guile scripting support configuration
This commit adds a new configuration for enabling the GNU Guile scripting support through the libguile. Note that this configuration is not enabled by default because it is a niche feature and requires the libguile, which is currently not built by the crosstool-ng for the host (gdb also keeps this feature disabled by default unless libguile is available for the host). Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent e8f84c7 commit 998ad4d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

config/debug/gdb.in.cross

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ config GDB_CROSS_LZMA
9696
Note that crosstool-ng does not build liblzma for the host and you are
9797
responsible for providing this library on the build system.
9898

99+
config GDB_CROSS_GUILE
100+
bool
101+
prompt "Build GDB with GNU Guile scripting support"
102+
help
103+
Build GDB with libguile, a library implementing the GNU Guile scripting
104+
feature.
105+
106+
Note that crosstool-ng does not build libguile for the host and you are
107+
responsible for providing this library on the build system.
108+
99109
config GDB_CROSS_EXTRA_CONFIG_ARRAY
100110
string
101111
prompt "Cross-gdb extra config"

scripts/build/debug/300-gdb.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ do_debug_gdb_build_cross()
6565
cross_extra_config+=("--without-lzma")
6666
fi
6767

68+
if [ "${CT_GDB_CROSS_GUILE}" = "y" ]; then
69+
cross_extra_config+=("--with-guile")
70+
else
71+
cross_extra_config+=("--without-guile")
72+
fi
73+
6874
if ${CT_HOST}-gcc --version 2>&1 | grep clang; then
6975
# clang detects the line from gettext's _ macro as format string
7076
# not being a string literal and produces a lot of warnings - which

0 commit comments

Comments
 (0)