commit: cac127282baa5e8d13339ecedcb76c2c23f93be2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Sat Jun 20 01:11:42 2020 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Sat Jun 20 01:11:42 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=cac12728
btrfs-progs: Honor LDFLAGS Bug: https://bugs.gentoo.org/727168 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> patches/btrfs-progs/5.6.1/btrfs-honor-LDFLAGS.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/patches/btrfs-progs/5.6.1/btrfs-honor-LDFLAGS.patch b/patches/btrfs-progs/5.6.1/btrfs-honor-LDFLAGS.patch new file mode 100644 index 0000000..891fe69 --- /dev/null +++ b/patches/btrfs-progs/5.6.1/btrfs-honor-LDFLAGS.patch @@ -0,0 +1,11 @@ +--- 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
