]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
build: allows use of env variable CARGO_BUILD_TARGET 4986/head
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 28 May 2020 11:59:38 +0000 (13:59 +0200)
committerPhilippe Antoine <contact@catenacyber.fr>
Thu, 28 May 2020 11:59:38 +0000 (13:59 +0200)
needed by oss-fuzz

configure.ac

index d738dfa99f24586f521270b7108c9866d2e142da..00326e7066fcec84b6d5455e5afdc448adb98f15 100644 (file)
@@ -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