Conversation
Signed-off-by: Kyle Mandli <kyle.mandli@gmail.com> Assisted-by: claude claude-opus-5
PR Detailed Description -- Summarized by ClaudeThe mechanism
LFLAGS ?= $(FFLAGS)
LFLAGS += -framework Accelerate # or MKL / -llapack on LinuxBy the time The result is that everything in
The changeOne line, added once at the top rather than repeated in each of the three LFLAGS += $(FFLAGS)
The rest of the diff is comment explaining the trap, since the failure mode VerificationReproduced the failure before fixing, on
Resulting link line now ends
On the
|
There was an inconsistency in the way link flags
$(LFLAGS)were dealt with in the multilayer Makefile. This was mostly due to the requirement that it needs to build against something that looks like LAPACK.While we were reviewing the Makefile behavior in other places we did notice that
examples/bouss/radial_flat/Makefilehardcodes-fopenmpinstead of $(FFLAGS). This is fragile as and drops other flags that may be included elsewhere. It may argue for makingALL_LFLAGSalways includeFFLAGS.