aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/configure.ac
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-03-12 13:32:15 -0600
committerTom Tromey <tromey@adacore.com>2020-03-12 13:32:16 -0600
commit4635ff975351603e64da3cbdeec3b999ee842ac8 (patch)
tree2347ceabf8611e64b4e0e753651f3ce56e8922cd /gdbserver/configure.ac
parent213291361b4ddb2d05b8c89bf47d23ca4306912e (diff)
downloadbinutils-4635ff975351603e64da3cbdeec3b999ee842ac8.zip
binutils-4635ff975351603e64da3cbdeec3b999ee842ac8.tar.gz
binutils-4635ff975351603e64da3cbdeec3b999ee842ac8.tar.bz2
Change gdbserver to use existing gdbsupport
This changes the gdbserver build to use the gdbsupport that was built for gdb. gdbserver and gdbreplay now must use WIN32APILIBS (aka -lws2_32). Before this change, gdbserver did not define USE_WIN32API when building gdbsupport, but now this is always done. ChangeLog 2020-03-12 Tom Tromey <tom@tromey.com> * Makefile.in: Rebuild. * Makefile.def (gdbserver): Depend on gdbsupport. gdbserver/ChangeLog 2020-03-12 Tom Tromey <tom@tromey.com> * configure: Rebuild. * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs. (WIN32APILIBS): New subst. * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove gdbsupport files. (gdbsupport/%.o): Remove target. (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables. (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT. (WIN32APILIBS): New variable. (gdbserver$(EXEEXT)): Add WIN32APILIBS. (gdbreplay$(EXEEXT)): Likewise.
Diffstat (limited to 'gdbserver/configure.ac')
-rw-r--r--gdbserver/configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac
index d92005c..755cc28 100644
--- a/gdbserver/configure.ac
+++ b/gdbserver/configure.ac
@@ -44,10 +44,10 @@ AX_CXX_COMPILE_STDCXX(11, , mandatory)
AC_HEADER_STDC
GDB_AC_COMMON
+# This is set by GDB_AC_COMMON.
+AC_SUBST(WIN32APILIBS)
-GDB_AC_SELFTEST([
- srv_selftest_objs="gdbsupport/selftest.o"
-])
+GDB_AC_SELFTEST
ACX_NONCANONICAL_TARGET
ACX_NONCANONICAL_HOST
@@ -357,7 +357,7 @@ if test "$srv_xmlfiles" != ""; then
done
fi
-GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
+GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
GDBSERVER_LIBS="$srv_libs"
dnl Check whether the target supports __sync_*_compare_and_swap.