summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-11-02 03:17:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2021-11-04 02:09:55 +0100
commit72382ed4b8cc9e801fc1892f1b5ffb4077338467 (patch)
treedea2ce729164b3d6a6a8f10bf4c9f5b867b9b64c
parent20c8ea7097cea73196ca97cb7c939c43b43b047b (diff)
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 <phil@nwl.cc>
-rw-r--r--package/gdb/Makefile2
1 files changed, 2 insertions, 0 deletions
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: