On 26/02/2026 22:19, Dima Pasechnik wrote:
Hello,

Hi Dima,

GNU libtool does not support compiling for and linking with llvm's OpenMP 
library using Apple's
clang compiler, as it requires prefixing the -fopenmp option with
-Xpreprocessor non-standard option.

We have a simple fix for this - which requires patching ltmain.sh, as
shown below (this is against a bit dated libtool version, GNU libtool
2.4.7; for the current stable version, it would be basically the same).
(cf. https://github.com/sagemath/sage/pull/41626)

Would this be acceptable addition to libtool?

Thank you for your patch! I think this should be a good addition with
some minor changes for syntax checks. I have applied it to the
development branch for more time and testing before it migrates to the
master branch.

In future, please submit suggested patches to [email protected].

https://cgit.git.savannah.gnu.org/cgit/libtool.git/commit/?h=development&id=fa18359d6011eb986951915ffcd37b4289281b53

--
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

Attachment: OpenPGP_0x6570EA01146F7354.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to