From: Philippe Antoine Date: Thu, 28 May 2020 11:59:38 +0000 (+0200) Subject: build: allows use of env variable CARGO_BUILD_TARGET X-Git-Tag: suricata-6.0.0-beta1~405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4554ca168a5badaf40770c39ccbcf96aa41291b6;p=thirdparty%2Fsuricata.git build: allows use of env variable CARGO_BUILD_TARGET needed by oss-fuzz --- 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