[lvm-devel] [PATCH] autoconf: handle the standard --disable-shared flag
Zdenek Kabelac
zdenek.kabelac at gmail.com
Tue Sep 26 19:53:59 UTC 2023
Dne 22. 09. 23 v 8:47 Adam Joseph napsal(a):
> Since LVM 2.02 it appears that compiling LVM on a platform which
> lacks a shared library linker/loader will fail to produce any
> binaries (dmsetup, lvm2, etc).
>
> This commit adds support for the standard --disable-shared flag, and
> uses it to disable attempts at building shared libraries.
> ---
> configure.ac | 9 +++++++++
> libdm/Makefile.in | 7 +++++++
> libdm/dm-tools/Makefile.in | 9 +++++++++
> libdm/make.tmpl.in | 6 ++++++
> make.tmpl.in | 4 ++++
> 5 files changed, 35 insertions(+)
>
Hi
The main problem with supporting anything for 'static' linkage is rather a
lack of 'known' system that can be build with 'static' library of all other
used libraries - and actually be usable.
I.e. static udev or static systemd must be some kind of unicorn I'd like to
see myself.
So what is the system you are using ?
How is the lvm2 usable there ?
What libraries are present for usage ?
Do you purly target to have 'libdm' portion to be linked as static
(aka only 'dmsetup' resulting binary - or do you need 'dmeventd' ,
or mayby libdevmapper.a ?)
Regards
Zdenek
More information about the lvm-devel
mailing list