Skip to content

Commit

Permalink
8285630: Fix a configure error in RISC-V cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeihan committed Feb 21, 2024
1 parent d6abbb0 commit 331cd23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions make/autoconf/build-aux/config.sub
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ if echo $* | grep pc-msys >/dev/null ; then
exit
fi

# Canonicalize for riscv which autoconf-config.sub doesn't handle
if echo $* | grep '^riscv\(32\|64\)-linux' >/dev/null ; then
result=`echo $@ | sed 's/linux/unknown-linux/'`
echo $result
exit
fi

# First, filter out everything that doesn't begin with "aarch64-"
if ! echo $* | grep '^aarch64-' >/dev/null ; then
. $DIR/autoconf-config.sub "$@"
Expand Down

0 comments on commit 331cd23

Please sign in to comment.