Skip to contentSkip to conversation

mdrestore: do not do dynamic linking of libtool libraries

PATCH In review Vicente Olivert Riera 1 participant 2 messages Nov 25, 2015 – Nov 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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'

---
 mdrestore/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mdrestore/Makefile +1 -1
index 5171306..1b34a0e 100644
@@ -10,7 +10,7 @@ CFILES = xfs_mdrestore.c
 
 LLDLIBS = $(LIBXFS) $(LIBRT) $(LIBPTHREAD) $(LIBUUID)
 LTDEPENDENCIES = $(LIBXFS)
-LLDFLAGS = -static
+LLDFLAGS = -static-libtool-libs
 
 default: depend $(LTCOMMAND)
 
Signature · 6 lines
2.4.10

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#1 lore raw

ping

Quoted 17 lines · Vicente Olivert Riera

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'

---
 mdrestore/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mdrestore/Makefile +0 -0
index 5171306..1b34a0e 100644

mdrestore/Makefile CFILES = xfs_mdrestore.c · line 16

Quoted 8 lines
mdrestore/Makefile +1 -1
@@ -10,7 +10,7 @@ CFILES = xfs_mdrestore.c
 
 LLDLIBS = $(LIBXFS) $(LIBRT) $(LIBPTHREAD) $(LIBUUID)
 LTDEPENDENCIES = $(LIBXFS)
-LLDFLAGS = -static
+LLDFLAGS = -static-libtool-libs
 
 default: depend $(LTCOMMAND)
 

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs