Commit Graph

14 Commits

Author SHA1 Message Date
Jan Christian Grünhage 63ab475c69 common/build-helper/rust.sh: dynamic linking to oniguruma 2023-04-07 15:03:58 -04:00
Jan Christian Grünhage f1abc3c655 common/build-helper/rust.sh: dynamic linking to zstd 2023-04-06 18:36:43 +02:00
oreo639 eb9d775838 common/build-helper/rust.sh: allow specifying BINDGEN_EXTRA_CLANG_ARGS 2023-03-27 22:11:49 +02:00
zlice 12e6985c34 common: cleanup trailing whitespaces 2023-02-07 03:26:02 -05:00
classabbyamp 1490e17b58 common/build-helper/rust.sh: link to libsodium dynamically
without this envvar, libsodium-sys will attempt to link to libsodium
staticly, and may fail.
2022-03-15 14:52:08 +01:00
classabbyamp 191bf2460d common/build-helper/rust.sh: fix cross for bindgen
When using a build.rs script to dynamically generate bindgen bindings
at build-time, it will run on the host, and by default bindgen will
generate bindings for the host arch/libc instead of the target.
To generate the bindings on cross, we need to use BINDGEN_EXTRA_CLANG_ARGS
to specify the proper sysroot and include path for the target.
These arguments are not used for anything other than bindgen's clang
invocation.
2022-03-14 08:08:30 +01:00
Andrew J. Hesford 2f5e5f1e5e build-helper/rust: define HOST_CC and HOST_CFLAGS
The cc-rs crate will try to guess the host compiler and use default
flags these are not specifically set. The default behavior is wrong in
Void cross-compilation environments. Explicitly define HOST_CC=gcc and
use innocuous HOST_CFLAGS=-O2 just to thwart the bad defaults.

Co-authored-by: Érico Rolim <erico.erc@gmail.com>
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>

Closes: #28416.
2021-02-04 00:33:41 -05:00
Artur Sinila b0b2053e4c common/build-helper/rust.sh: dynamic linking to libpcre2 on musl 2020-10-15 03:09:51 -03:00
Érico Rolim 46ab04b8d1 common/build-helper/rust.sh: force native SSL lib
The OPENSSL_NO_VENDOR environment variable forces the openssl-sys crate
to use the system's SSL library instead of building its own.
2020-05-31 21:03:45 +02:00
q66 7f97e7c382 libgit2: update to 1.0.0 2020-05-04 16:18:57 +02:00
John 4a967a96da common/rust.sh: set CARGO_HOME to /host/cargo
currently cargo chaches everything in /tmp/.cargo and is not shared
between masterdirs
2019-12-14 11:25:59 +01:00
Johannes ed80967b9d build-helper/rust: add variables for sodium-sys 2019-06-16 21:40:08 +02:00
Johannes 026ebc069e common: unset rust-cross specific variables for native builds 2019-02-08 19:16:39 +01:00
maxice8 b287b66c83
build-helper/rust.sh: Add 2019-01-25 20:44:42 -02:00