--- configure.orig 2022-08-30 15:00:58.000000000 -0400 +++ configure 2022-08-30 15:02:44.000000000 -0400 @@ -15484,13 +15484,13 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } - RUST_TARGET_SUBDIR=debug + RUST_TARGET_SUBDIR="$CARGO_BUILD_TARGET/debug" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - RUST_TARGET_SUBDIR=release + RUST_TARGET_SUBDIR="$CARGO_BUILD_TARGET/release" fi if test "x$debug_release" = "xyes"; then @@ -15516,7 +15516,7 @@ if test "x$cross_compiling" = "xyes" then : - RUST_TARGET_SUBDIR="$RUST_TARGET/$RUST_TARGET_SUBDIR" + RUST_TARGET_SUBDIR="$RUST_TARGET_SUBDIR" fi