From eb0f1450ad9f23dac03050d9c8375980240aee21 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 14 Nov 2022 16:00:52 +0200 Subject: liblzma: Use __attribute__((__constructor__)) if available. This uses it for CRC table initializations when using --disable-small. It avoids mythread_once() overhead. It also means that then --disable-small --disable-threads is thread-safe if this attribute is supported. --- INSTALL | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'INSTALL') diff --git a/INSTALL b/INSTALL index a6c0551..2c94ece 100644 --- a/INSTALL +++ b/INSTALL @@ -456,7 +456,9 @@ XZ Utils Installation no Disable threading support. This is the same as using --disable-threads. - NOTE: If combined with --enable-small, the + NOTE: If combined with --enable-small + and the compiler doesn't support + __attribute__((__constructor__)), the resulting liblzma won't be thread safe, that is, if a multi-threaded application calls any liblzma functions from more than -- cgit v1.2.1