summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXarblu <xarblu@protonmail.com>2025-04-14 20:20:20 +0200
committerXarblu <xarblu@protonmail.com>2025-04-14 20:20:20 +0200
commit96e82871a4895732fe900fe3c2960af09fd0dfb1 (patch)
treec86a8afe28c6d788965b5200ca7035b8107dda61
parentc9ee6467183b224b40ca437fd23eeabe0ae6a158 (diff)
Preserve RUSTFLAGS from environment
Since commit 3666da87f249b23b2c1f506e0d4157fd56c543e2 the Makefile fully replaced RUSTFLAGS which users might want to modify e.g. to use other linkers via -Clinker=*
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9249c1b9..7d1812ce 100644
--- a/Makefile
+++ b/Makefile
@@ -80,7 +80,7 @@ CFLAGS+=$(call cc-disable-warning, zero-length-array)
CFLAGS+=$(call cc-disable-warning, shift-overflow)
CFLAGS+=$(call cc-disable-warning, enum-conversion)
CFLAGS+=$(call cc-disable-warning, gnu-variable-sized-type-not-at-end)
-export RUSTFLAGS=-C default-linker-libraries
+export RUSTFLAGS:=$(RUSTFLAGS) -C default-linker-libraries
PKGCONFIG_LIBS="blkid uuid liburcu libsodium zlib liblz4 libzstd libudev libkeyutils"
ifdef BCACHEFS_FUSE