On Tue, October 5, 2021 17:17, Kirill Bychkov wrote:
> Hi,
> Looking at aarch64 and powerpc64 build logs I've found this error:
>
> error: unknown FP unit 'sse'
>
> The diff below disables SSE2 flags for CLANG as it is done
> for GCC on non-x86 arches.
> OK to commit?
>
There is a more elegant solution. Same as in FreeBSD.
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/simgear/Makefile,v
retrieving revision 1.18
diff -u -p -u -p -r1.18 Makefile
--- Makefile 12 Jul 2021 20:52:43 -0000 1.18
+++ Makefile 21 Oct 2021 11:37:11 -0000
@@ -30,6 +30,9 @@ LIB_DEPENDS = graphics/openscenegraph \
audio/openal
CONFIGURE_ARGS += -DSYSTEM_EXPAT=ON
+.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "amd64"
+CONFIGURE_ARGS += -DENABLE_SIMD=OFF
+.endif
CFLAGS += -I${X11BASE}/include -pthread
CXXFLAGS += -I${X11BASE}/include -pthread