archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Problems with linking lvm statically with musl
@ 2017-12-24 14:36 KARBOWSKI Piotr
  0 siblings, 0 replies; only message in thread
From: KARBOWSKI Piotr @ 2017-12-24 14:36 UTC (permalink / raw)
  To: linux-lvm


I am facing some problems with linking LVM2.2.02.177 statically with 
musl, using Alpine Linux as a sysroot/chroot.

I needed to apply two patches:

It would be nice if you guys could upsptream it.

I've noticed that I am unable to link tools/dmsetup, as with 
LDFLAGs='-static' CFLAGS='-static' it's unable to find libdevmapper.a. 
It passes multiple -L directories, one of them is ../libdm, however, the 
libdevmapper is under ../libdm/ioctl directory, adding another -L or 
symlinking libdevmapper.a -> ioctl/libdevmapper.a does the trick

Is the ioctl location intentional or it's like that by bug?

-- Piotr.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-24 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-24 14:36 [linux-lvm] Problems with linking lvm statically with musl KARBOWSKI Piotr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).