From 87aac59e878f1605060b31278f71b75210a4745b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 14 Jul 2026 16:27:16 +0200 Subject: [PATCH] Rework the -mpwr10 option to be only applied to POWER9/10 on FreeBSD --- Makefile.power | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.power b/Makefile.power index 418b784ac0..95f25d1dfc 100644 --- a/Makefile.power +++ b/Makefile.power @@ -111,7 +111,12 @@ endif endif ifeq ($(C_COMPILER), CLANG) -CCOMMON_OPT += -fno-integrated-as -Wa,-mpwr10 +CCOMMON_OPT += -fno-integrated-as +ifeq ($(OSNAME), FreeBSD) +ifeq ($(CORE), $(filter $(CORE),POWER9 POWER10)) +CCOMMON_OPT += -Wa,-mpwr10 +endif +endif endif # workaround for C->FORTRAN ABI violation in LAPACKE ifeq ($(F_COMPILER), GFORTRAN)