Browse Source

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>
Phil Sutter 3 years ago
parent
commit
72382ed4b8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/gdb/Makefile

+ 2 - 0
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: