math/symfpu: fix build on non-x86

Only supply x86-specific CXXFLAGS on i386 and amd64.

Approved by:	portmgr (build fix blanket)
This commit is contained in:
Robert Clausecker
2023-04-18 23:55:30 +02:00
parent bba4910f8c
commit d422cb7e4a
2 changed files with 11 additions and 3 deletions
+6 -3
View File
@@ -15,12 +15,15 @@ USE_GITHUB= yes
GH_ACCOUNT= martin-cs
GH_TAGNAME= c3acaf6
CXXFLAGS+= -I${WRKSRC}
ALL_TARGET= subdirs symfpu.a
MAKE_ARGS= SUBDIRS=baseTypes
# these flags are x86-only and have been patched out
# of ${WRKSRC}/flags for portability
CXXFLAGS_amd64= -msse -mfma -mno-fma4 -mfpmath=sse
CXXFLAGS_i386= ${CXXFLAGS_amd64}
CXXFLAGS+= ${CXXFLAGS_${ARCH}} -I${WRKSRC}
do-install:
${MKDIR} \
${STAGEDIR}${PREFIX}/include/symfpu/core \
+5
View File
@@ -0,0 +1,5 @@
--- flags.orig 2023-04-17 21:44:48 UTC
+++ flags
@@ -1 +1 @@
-CXXFLAGS+=-std=gnu++11 -Wall -W -frounding-math -fsignaling-nans -ffp-contract=off -msse2 -mfpmath=sse -pedantic -mfma -mno-fma4
+CXXFLAGS+=-std=gnu++11 -Wall -W -frounding-math -fsignaling-nans -ffp-contract=off -pedantic