Blame view

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