Enable Rust-based journal file reader in static builds. (#20477)
* Enable Rust-based journal file reader in static builds. * Actually enable systemd journal plugin in static builds. * Comment out stuff not related to jf FFI * Define _GNU_SOURCE * Enable fstat caching only when not using our journal file reader. * Use crt-static target feature * Use local flags * Revert "Use local flags" This reverts commit dbad23614f81f16ac09a554d7931fedf11d32aff. * Revert "Use crt-static target feature" This reverts commit a3a9580dc5718917b7458193ed38156f50ca844f. * Use RUSTFLAGS * Do not use fstat caching when built with Rust. * Disable Rust journal file reader for ARMv6l Rust builds are somehow fundamentally broken when trying to build ARMv6 code on a 64-bit ARMv8 host, so just skip it there for now. --------- Co-authored-by: vkalintiris <vasilis@netdata.cloud>