Reflect on some incompatible changes in GCC 10.

Starting with GCC10 and LTO enabled, current symbols
versioning hack does not work anymore. This patch
reflects on that and should be compatible with older
compilers that does not support __attribute__((symver))
yet.

Inspired by following code:
https://github.com/linux-rdma/rdma-core/blob/master/util/symver.h
This commit is contained in:
Ondrej Kozina
2021-04-06 17:22:28 +02:00
parent bc488fd4f1
commit e6089dd9c9
5 changed files with 129 additions and 24 deletions

View File

@@ -43,6 +43,7 @@ libcryptsetup_la_SOURCES = \
lib/nls.h \
lib/libcryptsetup.h \
lib/libcryptsetup_macros.h \
lib/libcryptsetup_symver.h \
lib/utils.c \
lib/utils_benchmark.c \
lib/utils_crypt.c \