]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Ignore target feature flags in _AC_FC_LIBRARY_LDFLAGS (#111353)
authorJan André Reuter <j.reuter@fz-juelich.de>
Wed, 3 Dec 2025 11:59:43 +0000 (12:59 +0100)
committerZack Weinberg <zack@owlfolio.org>
Tue, 27 Jan 2026 21:25:54 +0000 (16:25 -0500)
commit16de3c26a54dced1d1ef548de7bd4aa45ea2a773
treeea77c911ea3725e002725c8d74be90f31bd453f8
parentaacaff8891d66d7442257f24fe588e4dee26ba36
Ignore target feature flags in _AC_FC_LIBRARY_LDFLAGS (#111353)

Ignore target specific feature flags passed via '-target-feature'.
When encountered, ignore the flag passed after. These flags might
contain a '-l', e.g. '-target-feature -lwp', causing non-existent
libraries to be picked up, failing later checks, or the build of
the application.

This can e.g. be encountered when '-march=native' is passed to
configure during a build with LLVM on Zen 4 machines.

Reported by, and patch written by, Jan André Reuter <j.reuter@fz-juelich.de>.

* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Skip arguments
  immediately following ‘-target-feature’.
lib/autoconf/fortran.m4