| From fa3a4e036c8c78325216ed21eff6145aeb186686 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, scrub: 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> |
| Upstream: Proposed: https://www.spinics.net/lists/xfs/msg36149.html |
| [baruch: update for v4.15.1; extend to include scrub] |
| Signed-off-by: Baruch Siach <baruch@tkos.co.il> |
| [matt: update for v4.16.1; adjusted libunistring -> libicu] |
| Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> |
| [Julien: rebased on v6.4.0] |
| Signed-off-by: Julien Olivain <ju.o@free.fr> |
| --- |
| mdrestore/Makefile | 2 +- |
| scrub/Makefile | 2 +- |
| 2 files changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/mdrestore/Makefile b/mdrestore/Makefile |
| index 4a932efb..7ea1fd45 100644 |
| --- a/mdrestore/Makefile |
| +++ b/mdrestore/Makefile |
| @@ -10,7 +10,7 @@ CFILES = xfs_mdrestore.c |
| |
| LLDLIBS = $(LIBXFS) $(LIBFROG) $(LIBRT) $(LIBUUID) $(LIBURCU) $(LIBPTHREAD) |
| LTDEPENDENCIES = $(LIBXFS) $(LIBFROG) |
| -LLDFLAGS = -static |
| +LLDFLAGS = -static-libtool-libs |
| |
| default: depend $(LTCOMMAND) |
| |
| diff --git a/scrub/Makefile b/scrub/Makefile |
| index aba14ed2..f0ef492f 100644 |
| --- a/scrub/Makefile |
| +++ b/scrub/Makefile |
| @@ -71,7 +71,7 @@ xfs_scrub.c |
| LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBICU_LIBS) $(LIBRT) $(LIBURCU) \ |
| $(LIBPTHREAD) |
| LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) |
| -LLDFLAGS = -static |
| +LLDFLAGS = -static-libtool-libs |
| |
| ifeq ($(HAVE_MALLINFO),yes) |
| LCFLAGS += -DHAVE_MALLINFO |
| -- |
| 2.45.2 |
| |