summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2013-04-11 21:09:13 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-04-11 21:09:13 (GMT)
commitf4e6f4fef777bff7635939ed4de61e45733a3e6e (patch)
treeb5fab5a1df666832321304066a3188d6c0518964
parente8fad4d95d65e11ddb8a40bf9396f0da140c0269 (diff)
downloadbuildroot-f4e6f4fef777bff7635939ed4de61e45733a3e6e.tar.gz
buildroot-f4e6f4fef777bff7635939ed4de61e45733a3e6e.tar.bz2
gdb: add back $ARCH-linux-gdb symlink for host-gdb
Like we do for the toolchain and we used to to do for gdb. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/gdb/gdb.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index cec64d5..73ff7a4 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -111,5 +111,13 @@ HOST_GDB_CONF_OPT = \
--without-included-gettext \
--disable-sim
+# legacy $arch-linux-gdb symlink
+define HOST_GDB_ADD_SYMLINK
+ cd $(HOST_DIR)/usr/bin && \
+ ln -snf $(GNU_TARGET_NAME)-gdb $(ARCH)-linux-gdb
+endef
+
+HOST_GDB_POST_INSTALL_HOOKS += HOST_GDB_ADD_SYMLINK
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))