* [PATCH v1 01/13] script language API for GDB: configure changes
@ 2013-12-06 5:52 xdje42
0 siblings, 0 replies; only message in thread
From: xdje42 @ 2013-12-06 5:52 UTC (permalink / raw)
To: gdb-patches
This patch changes configure.ac to only link in python.o,
with or without python.
2013-12-05 Doug Evans <xdje42@gmail.com>
* configure.ac (libpython checking): Remove all but python.o from
CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
* configure: Regenerate.
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 7c37f25..8e20ce4 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1044,11 +1044,10 @@ if test "${have_libpython}" != no; then
AC_MSG_RESULT(${python_has_threads})
CPPFLAGS="${saved_CPPFLAGS}"
else
- # Even if Python support is not compiled in, we need to have these files
- # included.
- CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
- CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
- python/py-prettyprint.c python/py-auto-load.c"
+ # Even if Python support is not compiled in, we need to have this file
+ # included so that the "python" command, et.al., still exists.
+ CONFIG_OBS="$CONFIG_OBS python.o"
+ CONFIG_SRCS="$CONFIG_SRCS python/python.c"
fi
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON_CPPFLAGS)
diff --git a/gdb/configure b/gdb/configure
index 5300b5a..1bf2f79 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -8557,11 +8557,10 @@ rm -f conftest.err conftest.$ac_ext
$as_echo "${python_has_threads}" >&6; }
CPPFLAGS="${saved_CPPFLAGS}"
else
- # Even if Python support is not compiled in, we need to have these files
- # included.
- CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
- CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
- python/py-prettyprint.c python/py-auto-load.c"
+ # Even if Python support is not compiled in, we need to have this file
+ # included so that the "python" command, et.al., still exists.
+ CONFIG_OBS="$CONFIG_OBS python.o"
+ CONFIG_SRCS="$CONFIG_SRCS python/python.c"
fi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-06 5:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-06 5:52 [PATCH v1 01/13] script language API for GDB: configure changes xdje42
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).