Re: fixing AC_OPENMP for Apple clang

Dima Pasechnik <[email protected]> Tue, 03 Mar 2026 19:46:19 -0600
Newsgroups gmane.comp.sysutils.autoconf.general
Message-ID <[email protected]>
On March 3, 2026 6:33:10 PM CST, Bruno Haible <bruno@clisp=2Eorg> wrote:
>See also the ticket <https://savannah=2Egnu=2Eorg/support/?111055>=2E
>There, two facts were mentioned:
>
>* While libtool (version 2=2E5=2E3) does not support "-Xpreprocessor -fop=
enmp",
>  it does support "-Wp,-fopenmp"=2E
>
>* On macOS 26=2E2, with cc being "Apple clang version 17=2E0=2E0 (clang-1=
700=2E6=2E3=2E2)",
>  "cc -help" reports that the option '-fopenmp' exists=2E
>  Therefore it looks like trying "-Wp,-fopenmp" is only needed for older
>  versions of Apple clang (which ones?)=2E
>
>Bruno
>
>
>

I mentioned in the thread that I already got a patch into GNU libtool to s=
upport "-Xpreprocessor -fopenmp"=2E

Just in case,
Dima