X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/122ba8031d2311429e94014ad98849c51b3b634f..166503f1c5455c39c11780ca8dc4b0b7413c4c06:/toolchain/gdb/Makefile diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index 696b2e493..0aaa5e0dc 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -20,10 +20,11 @@ define Host/Configure gdb_cv_func_sigsetjmp=yes \ CFLAGS="-O2" \ $(HOST_BUILD_DIR)/configure \ - --prefix=$(TOOLCHAIN_DIR)/usr \ + --prefix=$(TOOLCHAIN_DIR) \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \ --target=$(REAL_GNU_TARGET_NAME) \ + --disable-werror \ $(DISABLE_NLS) \ --without-uiout \ --disable-tui --disable-gdbtk --without-x \ @@ -37,17 +38,17 @@ define Host/Compile endef define Host/Install - mkdir -p $(TOOLCHAIN_DIR)/usr/bin - $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb - ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb - strip $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb + mkdir -p $(TOOLCHAIN_DIR)/bin + $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb + ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb + strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb endef define Host/Clean rm -rf \ $(HOST_BUILD_DIR) \ - $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb \ - $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb + $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \ + $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb endef $(eval $(call HostBuild))