[Buildroot] [PATCH] lvm2: disable statical building because it fails
Fabio Porcedda
fabio.porcedda at gmail.com
Thu Dec 19 13:23:50 UTC 2013
On Thu, Dec 19, 2013 at 11:43 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Fabio Porcedda,
>
> On Thu, 19 Dec 2013 11:36:51 +0100, Fabio Porcedda wrote:
>
>> > Thanks, but you forgot to propagate this new dependency to the reverse
>> > dependencies of lvm2, and you forgot to add the corresponding comment.
>> > See
>> > http://buildroot.org/downloads/manual/manual.html#dependencies-target-toolchain-options.
>>
>> Ok, thanks, i will send an updated patch.
>
> Looking more at the problem, isn't it possible to fix the static build
> of LVM2, rather than preventing LVM2 from being selected in this case?
Yes, i've found a way to fix that.
First is a fix to buildroot adding:
+LVM2_CONF_OPT += --enable-static_link
The second one is a bug within lvm2 when using static building.
diff --git a/home/fabiopo/tmp/Makefile.in
b/output/build/lvm2-2.02.103/libdm/Makefile.in
index 7b40bde..bddb0a0 100644
--- a/home/fabiopo/tmp/Makefile.in
+++ b/output/build/lvm2-2.02.103/libdm/Makefile.in
@@ -40,7 +40,6 @@ endif
ifeq ("@STATIC_LINK@", "yes")
LIB_STATIC = $(interface)/libdevmapper.a
-TARGETS += libdevmapper.a
endif
LIB_SHARED = $(interface)/libdevmapper.$(LIB_SUFFIX)
@@ -65,9 +64,6 @@ device-mapper: all
libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION):
$(LIB_SHARED)
$(LN_S) -f $< $@
-libdevmapper.a: $(LIB_STATIC)
- $(LN_S) -f $< $@
-
I will prepare a patch to fix lvm2 static building.
Best regards
--
Fabio Porcedda
More information about the buildroot
mailing list