From 4554ca168a5badaf40770c39ccbcf96aa41291b6 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 28 May 2020 13:59:38 +0200 Subject: [PATCH] build: allows use of env variable CARGO_BUILD_TARGET needed by oss-fuzz --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d738dfa99f..00326e7066 100644 --- a/configure.ac +++ b/configure.ac @@ -2488,7 +2488,11 @@ fi if test "x$cross_compiling" = "xyes"; then RUST_SURICATA_LIB_XC_DIR="${host_alias}/" else - RUST_SURICATA_LIB_XC_DIR= + if test "x$CARGO_BUILD_TARGET" = "x"; then + RUST_SURICATA_LIB_XC_DIR= + else + RUST_SURICATA_LIB_XC_DIR="${CARGO_BUILD_TARGET}/" + fi fi if test "x$enable_debug" = "xyes"; then