aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 cec64d5c8..73ff7a465 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))