aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/btrfs-progs/5.11/btrfs-honor-LDFLAGS.patch')
-rw-r--r--patches/btrfs-progs/5.11/btrfs-honor-LDFLAGS.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/btrfs-progs/5.11/btrfs-honor-LDFLAGS.patch b/patches/btrfs-progs/5.11/btrfs-honor-LDFLAGS.patch
new file mode 100644
index 0000000..48e967d
--- /dev/null
+++ b/patches/btrfs-progs/5.11/btrfs-honor-LDFLAGS.patch
@@ -0,0 +1,12 @@
+--- a/Makefile
++++ b/Makefile
+@@ -130,7 +130,7 @@ LIBBTRFS_LIBS = $(LIBS_BASE) $(LIBS_CRYPTO)
+
+ # Static compilation flags
+ STATIC_CFLAGS = $(CFLAGS) -ffunction-sections -fdata-sections
+-STATIC_LDFLAGS = -static -Wl,--gc-sections
++STATIC_LDFLAGS = $(LDFLAGS) -static -Wl,--gc-sections
+ STATIC_LIBS = $(STATIC_LIBS_BASE)
+
+ # don't use FORTIFY with sparse because glibc with FORTIFY can
+