summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-03-29 21:46:12 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-30 13:06:19 +0200
commit1cedbaf13778de02e38b5dc80a7af246b7ec83e5 (patch)
tree152ab4ec39c677eb1a349c290952acff641c52f8 /include
parent1a17a5ab80b1699ac086ad34852116e7728cc378 (diff)
downloadlvm2-1cedbaf13778de02e38b5dc80a7af246b7ec83e5.tar.gz
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>
Diffstat (limited to 'include')
-rw-r--r--include/configure.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configure.h.in b/include/configure.h.in
index b8d95833a..671d201b2 100644
--- a/include/configure.h.in
+++ b/include/configure.h.in
@@ -132,6 +132,9 @@
/* Path to fsadm binary. */
#undef FSADM_PATH
+/* Define to use GNU versioning in the shared library. */
+#undef GNU_SYMVER
+
/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM