From 96e82871a4895732fe900fe3c2960af09fd0dfb1 Mon Sep 17 00:00:00 2001 From: Xarblu Date: Mon, 14 Apr 2025 20:20:20 +0200 Subject: [PATCH] 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=* --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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