]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: save cargo and CARGO_HOME to variables
authorJason Ish <ish@unx.ca>
Tue, 20 Jun 2017 16:17:54 +0000 (10:17 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 26 Jun 2017 07:59:54 +0000 (09:59 +0200)
commit14951e3f0079df212444d82bdc5ebb27cb88f01d
tree2576c1358f57cd6b4141761bc5c9f614d06784b5
parent4be031394be3f6a2e0f0462e2dcb39a84bc2d32b
rust: save cargo and CARGO_HOME to variables

During configure, substitute the path of cargo, as well as the
value of CARGO_HOME as variables. This fixes the case where a
user might do:
  make
  sudo make install
Which will cause the cargo bits to be rebuilt, including
re-downloading external crates.

By saving these to variables we can be sure that the same
values are used during make install as were used during
make which prevents the Rust artifacts from being rebuild
during "sudo make install".
configure.ac
rust/Makefile.am