aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-08 18:04:28 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-14 18:01:20 -0400
commit483ab96a1bd6df30035dc2ae1a90b1b59c54ef75 (patch)
tree6caabc894a85765a3cd961a28fc0c635aa462e05 /gdb
parent09db4332c6017ab57cd136788c48e5a81e3b9399 (diff)
downloadgdb-483ab96a1bd6df30035dc2ae1a90b1b59c54ef75.zip
gdb-483ab96a1bd6df30035dc2ae1a90b1b59c54ef75.tar.gz
gdb-483ab96a1bd6df30035dc2ae1a90b1b59c54ef75.tar.bz2
gnulib: define the path to gnulib's parent dir
The current setting assumes that gnulib is only used by dirs immediately under the source root. Trying to build it two or more levels deep fails. Switch GNULIB_BUILDDIR to a relative GNULIB_PARENT_DIR so that it can be used to construct both the build & source paths.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/Makefile.in4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7f46c4a..4188bc8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2021-06-14 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (GNULIB_BUILDDIR): Rename to ...
+ (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
+
2021-06-14 John Baldwin <jhb@FreeBSD.org>
* configure.ac: Check for <sys/procctl.h>.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index f664d96..b3d264f 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -245,8 +245,8 @@ CODESIGN_CERT = @CODESIGN_CERT@
GDBFLAGS =
# Helper code from gnulib.
-GNULIB_BUILDDIR = ../gnulib
-include $(GNULIB_BUILDDIR)/Makefile.gnulib.inc
+GNULIB_PARENT_DIR = ..
+include $(GNULIB_PARENT_DIR)/gnulib/Makefile.gnulib.inc
SUPPORT = ../gdbsupport
LIBSUPPORT = $(SUPPORT)/libgdbsupport.a