1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/misc
Zdenek Kabelac 1cedbaf137 configure: support builds without versioning
Not all libc (like musl, uclibc dietlibc) libraries support full symbol
version resolution in runtime like glibc.
Add support to not generate symbol versions when compiling against them.

Additionally libdevmapper.so was broken when compiled against
uclibc. Runtime linker loader caused calling dm_task_get_info_base()
function recursively, leading to segmentation fault.

Introduce --with-symvers=STYLE option, which allows to choose
between gnu and disabled symbol versioning. By default gnu symbol
versioning is used.
__GNUC__ check is replaced now with GNU_SYMVER.
Additionally ld version script is included only in
case of gnu option, which slightly reduces output size.

Providing --without-symvers to configure script when building against
uclibc library fixes segmentation fault error described above, due to
lack of several versions of the same symbol in libdevmapper.so
library.

Based on:
https://patchwork.kernel.org/project/dm-devel/patch/20180831144817.31207-1-m.niestroj@grinn-global.com/

Suggested-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2021-03-30 13:06:19 +02:00
..
crc_gen.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
crc.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
crc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
intl.h doc: change fsf address 2016-01-21 12:11:37 +01:00
last-path-component.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lib.h configure: support builds without versioning 2021-03-30 13:06:19 +02:00
lvm-exec.c Merge branch 'master' into 2018-05-11-fork-libdm 2018-05-16 13:43:02 +01:00
lvm-exec.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm-file.c lvm-file: remove duplication of dm_is_empty_dir 2021-03-10 01:09:14 +01:00
lvm-file.h lvm-file: remove duplication of dm_is_empty_dir 2021-03-10 01:09:14 +01:00
lvm-flock.c pvcreate,pvremove: fix reacquiring global lock after prompt 2019-11-26 14:34:43 -06:00
lvm-flock.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-globals.c pvscan: disable sleeping and retrying for udev 2019-08-16 14:41:26 -05:00
lvm-globals.h pvscan: disable sleeping and retrying for udev 2019-08-16 14:41:26 -05:00
lvm-maths.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm-maths.h lib: Move lcm and gcd to lib/misc for wider use. 2016-08-18 14:06:13 +01:00
lvm-percent.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm-percent.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-signal.c signals: add interruptible usleep 2021-03-14 16:34:38 +01:00
lvm-signal.h signals: add interruptible usleep 2021-03-14 16:34:38 +01:00
lvm-string.c Allow dm-integrity to be used for raid images 2020-04-15 12:10:32 -05:00
lvm-string.h lvm-string: add drop_lvname_suffix 2019-10-21 12:14:15 +02:00
lvm-wrappers.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm-wrappers.h fix: make udev_get_library_context available also for non-udev compilations 2016-04-01 15:35:22 +02:00
sharedlib.c lvm: drop usage of dl library 2018-12-17 10:36:52 +01:00
sharedlib.h lvm: drop usage of dl library 2018-12-17 10:36:52 +01:00
util.h utils: add clzll 2018-06-22 23:37:02 +02:00