git: 834e8e1d065d - main - math/scs: don't build with -march=native

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 19 Oct 2026 09:32:10 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=834e8e1d065db604a013c42944d74361c983ef88

commit 834e8e1d065db604a013c42944d74361c983ef88
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-18 16:08:47 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-19 09:26:38 +0000

    math/scs: don't build with -march=native
    
    Packages must not depend on the build host's CPU, and clang doesn't accept
    -march on powerpc anyway.
---
 math/scs/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/math/scs/Makefile b/math/scs/Makefile
index 7665ca575b9d..b0afc6ca3542 100644
--- a/math/scs/Makefile
+++ b/math/scs/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	scs
 DISTVERSION=	3.3.1
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -15,7 +16,9 @@ USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	cvxgrp
 
-MAKE_ARGS=	BLASLDFLAGS="-lopenblas"
+# OPT: upstream defaults to -march=native, which packages must not use
+MAKE_ARGS=	BLASLDFLAGS="-lopenblas" \
+		OPT="-O3 -fno-math-errno"
 
 ALL_TARGET=	default