8295033: hsdis configure error when cross-compiling with --with-binutils-src

Reviewed-by: erikj, ihse, shade
This commit is contained in:
Dingli Zhang 2022-10-12 07:24:30 +00:00 committed by Aleksey Shipilev
parent 16e0c5994a
commit 392f35df4b

View File

@ -175,7 +175,11 @@ AC_DEFUN([LIB_BUILD_BINUTILS],
fi
else
binutils_cc="$CC $SYSROOT_CFLAGS"
binutils_target=""
if test "x$COMPILE_TYPE" = xcross; then
binutils_target="--host=$OPENJDK_TARGET_AUTOCONF_NAME"
else
binutils_target=""
fi
fi
binutils_cflags="$binutils_cflags $MACHINE_FLAG $JVM_PICFLAG $C_O_FLAG_NORM"