* [PATCH xfsprogs] mdrestore: do not do dynamic linking of libtool libraries
@ 2015-11-25 11:10 Vicente Olivert Riera
2015-11-30 13:25 ` Vicente Olivert Riera
0 siblings, 1 reply; 2+ messages in thread
From: Vicente Olivert Riera @ 2015-11-25 11:10 UTC (permalink / raw)
To: xfs; +Cc: 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'
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
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH xfsprogs] mdrestore: do not do dynamic linking of libtool libraries
2015-11-25 11:10 [PATCH xfsprogs] mdrestore: do not do dynamic linking of libtool libraries Vicente Olivert Riera
@ 2015-11-30 13:25 ` Vicente Olivert Riera
0 siblings, 0 replies; 2+ messages in thread
From: Vicente Olivert Riera @ 2015-11-30 13:25 UTC (permalink / raw)
To: xfs
ping
On 25/11/15 11:10, Vicente Olivert Riera wrote:
> 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)
>
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-30 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-25 11:10 [PATCH xfsprogs] mdrestore: do not do dynamic linking of libtool libraries Vicente Olivert Riera
2015-11-30 13:25 ` Vicente Olivert Riera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox