netsnmp: handle libnl dependency properly
[buildroot-gz.git] / package / xfsprogs / 0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch
blob3f79dbbe99a81de14e166726ec908eb50b438a95
1 mdrestore: do not do dynamic linking of libtool libraries
3 This patch has been sent upstream:
5 http://oss.sgi.com/pipermail/xfs/2015-November/045136.html
7 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
9 From a406326f724006d62085a0aeae1072b4145caa9d Mon Sep 17 00:00:00 2001
10 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11 Date: Wed, 25 Nov 2015 10:50:00 +0000
12 Subject: [PATCH] mdrestore: do not do dynamic linking of libtool libraries
14 As explained in commit ece49daeff1a3cad765e106d678c608925c9d768, use
15 -static-libtool-libs instead of -static to allow fallback to the dynamic
16 linking for libuuid only. Otherwise the build will fail like this:
18 ld: attempted static link of dynamic object `/usr/lib/libuuid.so'
20 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
21 ---
22 mdrestore/Makefile | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
25 diff --git a/mdrestore/Makefile b/mdrestore/Makefile
26 index 5171306..1b34a0e 100644
27 --- a/mdrestore/Makefile
28 +++ b/mdrestore/Makefile
29 @@ -10,7 +10,7 @@ CFILES = xfs_mdrestore.c
31 LLDLIBS = $(LIBXFS) $(LIBRT) $(LIBPTHREAD) $(LIBUUID)
32 LTDEPENDENCIES = $(LIBXFS)
33 -LLDFLAGS = -static
34 +LLDFLAGS = -static-libtool-libs
36 default: depend $(LTCOMMAND)
38 --
39 2.4.10