From 72382ed4b8cc9e801fc1892f1b5ffb4077338467 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 2 Nov 2021 03:17:05 +0100 Subject: gdb: Fix libgmp dependency checks Added checks for libgmp in configure scripts are not really portable, at least 'gdb' subdir configure used host's libgmp and consequently failed. At least there's 'host_configargs' to define additional arguments; use it to point sub-configure to the right location. Signed-off-by: Phil Sutter --- package/gdb/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/gdb') diff --git a/package/gdb/Makefile b/package/gdb/Makefile index 97a4ffbc9..e15d7420d 100644 --- a/package/gdb/Makefile +++ b/package/gdb/Makefile @@ -24,6 +24,7 @@ XAKE_FLAGS+= MAKEINFO=true WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj +CONFIGURE_ENV+= host_configargs='--with-libgmp-prefix="${STAGING_TARGET_DIR}/usr"' # --enable-static is required to build libbfd.a CONFIGURE_ARGS+= --enable-static \ --without-uiout \ @@ -44,6 +45,7 @@ CONFIGURE_ARGS+= --enable-static \ --with-system-readline \ --with-curses \ --with-libexpat-prefix="${STAGING_TARGET_DIR}/usr" \ + --with-gmp="${STAGING_TARGET_DIR}/usr" \ --enable-gdbmi gdb-install: -- cgit v1.2.3