summaryrefslogtreecommitdiffstats
path: root/package/btrfs-progs/0001-Makefile-install-static-library-and-headers-in-insta.patch
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2017-03-10 15:05:44 +0000
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-10 22:04:24 +0100
commit49c9f297726d51150278da10e263333d79d6e956 (patch)
tree28b0ed8568754150944eabeb34198d024c9ef52a /package/btrfs-progs/0001-Makefile-install-static-library-and-headers-in-insta.patch
parent1d958ec03dae64db91ca5a9fd52601f93aa82988 (diff)
downloadbuildroot-49c9f297726d51150278da10e263333d79d6e956.tar.gz
buildroot-49c9f297726d51150278da10e263333d79d6e956.zip
btrfs-progs: bump version to 4.10
Rebase patch for this new release. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/btrfs-progs/0001-Makefile-install-static-library-and-headers-in-insta.patch')
-rw-r--r--package/btrfs-progs/0001-Makefile-install-static-library-and-headers-in-insta.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/package/btrfs-progs/0001-Makefile-install-static-library-and-headers-in-insta.patch b/package/btrfs-progs/0001-Makefile-install-static-library-and-headers-in-insta.patch
new file mode 100644
index 0000000000..ba65ac4185
--- /dev/null
+++ b/package/btrfs-progs/0001-Makefile-install-static-library-and-headers-in-insta.patch
@@ -0,0 +1,49 @@
+From ff93866eb119cedb791894814780c0e44db35715 Mon Sep 17 00:00:00 2001
+From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+Date: Fri, 10 Mar 2017 14:56:17 +0000
+Subject: [PATCH] Makefile: install static library and headers in
+ install-static
+
+Currently, the install-static target only installs the statically
+compiled tools. However, some programs outside of btrfs-progs (for
+example docker) link with the btrfs libraries. If such programs want to
+link statically against the btrfs-progs library, then this library
+should be installed by "install-static". Indeed, "make install" cannot
+be used if the support for shared library is not enabled.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+[Gustavo: Rebase for btrfs-progs 4.7.2]
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+[Vincent: Rebase for btrfs-progs 4.10]
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+---
+ Makefile | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 67fbc48..d9e34be 100644
+--- a/Makefile
++++ b/Makefile
+@@ -308,7 +308,7 @@ test: test-fsck test-mkfs test-convert test-misc test-fuzz test-cli
+ # NOTE: For static compiles, you need to have all the required libs
+ # static equivalent available
+ #
+-static: $(progs_static)
++static: $(progs_static) $(libs_static)
+
+ version.h: version.sh version.h.in configure.ac
+ @echo " [SH] $@"
+@@ -537,6 +537,10 @@ install-static: $(progs_static) $(INSTALLDIRS)
+ $(INSTALL) $(progs_static) $(DESTDIR)$(bindir)
+ # btrfsck is a link to btrfs in the src tree, make it so for installed file as well
+ $(LN_S) -f btrfs.static $(DESTDIR)$(bindir)/btrfsck.static
++ $(INSTALL) -m755 -d $(DESTDIR)$(libdir)
++ $(INSTALL) $(libs_static) $(DESTDIR)$(libdir)
++ $(INSTALL) -m755 -d $(DESTDIR)$(incdir)
++ $(INSTALL) -m644 $(headers) $(DESTDIR)$(incdir)
+
+ $(INSTALLDIRS):
+ @echo "Making install in $(patsubst install-%,%,$@)"
+--
+2.10.2
+
OpenPOWER on IntegriCloud