unset CFLAGS
unset CPPFLAGS
unset LDFLAGS
# FIXME: linker-plugin-lto requires known good combinations of toolchain versions, like Rust 1.73 requires Clang 17
# At the time of writing, AOSC OS ships Clang 18.
# https://doc.rust-lang.org/rustc/linker-plugin-lto.html#toolchain-compatibility
export RUSTFLAGS="$RUSTFLAGS -Clinker-plugin-lto=n"

sed -e 's|^EXTRAVERSION = -rc.*|EXTRAVERSION =|g' -i Makefile

# vim: set noexpandtab sts=4 ts=4 sw=4 syntax=bash :
