Commit Graph

20 Commits

Author SHA1 Message Date
Marcin Puc 737173a42f common/build-helper/rust.sh: force using system libgit2 library 2024-03-28 14:13:38 +00:00
classabbyamp d43fe51166 common/build-helper/rust.sh: support larger pagesizes
intentionally not forcing the usage of system jemalloc because it builds
with an unprefixed malloc and thus jemalloc's malloc can unintentionally
be used for linked C libraries
2024-01-17 22:11:45 -05:00
John ee59a36bdd build-helper/rust.sh: prevent stripping by cargo
Some rust pacakges (e.g. eza and bat) do set strip = true
in their release profile which removes the debug symbols
before xbps-src can split them.

closes #47459
2023-11-28 12:23:22 +01:00
classabbyamp 62281ca96a
Partially revert "common/build-helper/rust.sh: link to libgit2 and libsqlite3 dynamically"
This reverts commit d69cddbbc4.

libgit2 part will be applied as part of the libgit2 update
2023-11-26 04:01:26 -05:00
icp d69cddbbc4 common/build-helper/rust.sh: link to libgit2 and libsqlite3 dynamically
libgit2 upstream: 59a81cac9a
libsqlite3 upstream: b4604f2421
2023-11-26 03:32:34 -05:00
Gonzalo Tornaría d0be5a7ef0 common/build-helper/rust.sh: fix cross for pyo3 2023-09-26 14:48:33 -04:00
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