toolchain/gdb: use expat library to be able to parse target machine definitions

Fixes gdbserver debugging with at least mvebu, possibly others

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46298
This commit is contained in:
Felix Fietkau 2015-07-10 19:42:12 +00:00
parent ae706ea6b6
commit 05ae45ac6f

View File

@ -17,11 +17,10 @@ HOST_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/toolchain-build.mk include $(INCLUDE_DIR)/toolchain-build.mk
define Host/Configure HOST_CONFIGURE_VARS += \
(cd $(HOST_BUILD_DIR); \ gdb_cv_func_sigsetjmp=yes
gdb_cv_func_sigsetjmp=yes \
CFLAGS="-O2" \ HOST_CONFIGURE_ARGS = \
$(HOST_BUILD_DIR)/configure \
--prefix=$(TOOLCHAIN_DIR) \ --prefix=$(TOOLCHAIN_DIR) \
--build=$(GNU_HOST_NAME) \ --build=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \
@ -31,8 +30,7 @@ define Host/Configure
--disable-tui --disable-gdbtk --without-x \ --disable-tui --disable-gdbtk --without-x \
--without-included-gettext \ --without-included-gettext \
--enable-threads \ --enable-threads \
); --with-expat
endef
define Host/Install define Host/Install
mkdir -p $(TOOLCHAIN_DIR)/bin mkdir -p $(TOOLCHAIN_DIR)/bin