* On 2025-09-15 at 12:18 BST, Greg Troxel wrote:
The plot thickens. From the bup list, pointed out that $AC_CC -Wall -Werror $cflags -c -o "$tmpdir/test" "$tmpdir/test.c" is a compile-only invocation, with no linking. However I note that -o is present to put test.o into a strange (but not prohibited) location test instead of test.o. Do people think the wrappers only add LDFLAGS to link invocations, and is the -o (vs not having -c) causing a false detect?
This doesn't directly answer your question, but a long time ago I needed a way to inject arguments only when we were actually linking, and have been running this diff for over a decade:
https://github.com/TritonDataCenter/pkgsrc/commit/578125abd7c625213bc4dc91c57470ce9c019231Joerg didn't like it so it has stayed in my tree, but something like this could probably be used to fix this issue.
-- Jonathan Perkin pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com