aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-03-13 16:27:51 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-03-13 16:27:51 +0100
commita360306f395aa771e5e4515062ab91f1dbb0374a (patch)
tree04fba74ee9a6d6cf26d9c4fa6c46bf1ef60a5b24 /patches/btrfs-progs/5.11/btrfs-honor-LDFLAGS.patch
parentinitrd.scripts: Add trim() function (diff)
downloadgenkernel-a360306f395aa771e5e4515062ab91f1dbb0374a.tar.gz
genkernel-a360306f395aa771e5e4515062ab91f1dbb0374a.tar.bz2
genkernel-a360306f395aa771e5e4515062ab91f1dbb0374a.zip
Bump btrfs-progs to v5.11
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
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
+