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 2 năm trước cách đây
mục cha
commit
72382ed4b8
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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: