X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5a7eec1ada3871c5dee91abbb73d593fe3c38c8a..c1b7257d2c1d31c1220d4f5ee697efb14380d7c2:/openwrt/toolchain/gdb/Makefile diff --git a/openwrt/toolchain/gdb/Makefile b/openwrt/toolchain/gdb/Makefile index 4b0d6b3ce..b1a2ad5fe 100644 --- a/openwrt/toolchain/gdb/Makefile +++ b/openwrt/toolchain/gdb/Makefile @@ -25,7 +25,7 @@ $(GDB_DIR)/.patched: $(DL_DIR)/$(GDB_SOURCE) GDB_CLIENT_DIR:=$(TOOL_BUILD_DIR)/gdbclient-$(GDB_VERSION) -$(GDB_CLIENT_DIR)/.configured: $(GDB_DIR)/.unpacked +$(GDB_CLIENT_DIR)/.configured: $(GDB_DIR)/.patched mkdir -p $(GDB_CLIENT_DIR) (cd $(GDB_CLIENT_DIR); \ gdb_cv_func_sigsetjmp=yes \ @@ -48,12 +48,12 @@ $(GDB_CLIENT_DIR)/gdb/gdb: $(GDB_CLIENT_DIR)/.configured $(TARGET_CROSS)gdb: $(GDB_CLIENT_DIR)/gdb/gdb install -c $(GDB_CLIENT_DIR)/gdb/gdb $(TARGET_CROSS)gdb - ln -fs ../../bin/$(REAL_GNU_TARGET_NAME)-gdb \ - $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/gdb + cd $(STAGING_DIR)/bin && \ + ln -fs $(TARGET_CROSS)gdb $(GNU_TARGET_NAME)-gdb source: $(DL_DIR)/$(GDB_SOURCE) prepare: $(GDB_DIR)/.patched compile: install: $(TARGET_CROSS)gdb clean: - rm -rf $(GDB_CLIENT_DIR) + rm -rf $(GDB_CLIENT_DIR) $(GDB_DIR)