On Sat, Oct 16, 2021 at 10:16:48AM -0600, c...@openbsd.org wrote:
> http://build-failures.rhaalovely.net/powerpc/2021-09-28/games/odamex.log

> <command line>:1:9: error: macro name must be an identifier
> #define -faltivec 1

Can you try this?

Index: patches/patch-client_CMakeLists_txt
===================================================================
RCS file: /cvs/ports/games/odamex/patches/patch-client_CMakeLists_txt,v
retrieving revision 1.3
diff -u -p -r1.3 patch-client_CMakeLists_txt
--- patches/patch-client_CMakeLists_txt 29 Aug 2021 22:09:09 -0000      1.3
+++ patches/patch-client_CMakeLists_txt 16 Oct 2021 16:41:49 -0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-client_CMakeLists_txt,v 
 Index: client/CMakeLists.txt
 --- client/CMakeLists.txt.orig
 +++ client/CMakeLists.txt
-@@ -163,7 +163,7 @@ if(TARGET SDL2::SDL2 OR TARGET SDL::SDL)
+@@ -163,13 +163,13 @@ if(TARGET SDL2::SDL2 OR TARGET SDL::SDL)
      elseif(ODAMEX_TARGET_ARCH STREQUAL "i386")
        if(NOT MSVC)
          # Pentium M has SSE2.
@@ -12,6 +12,13 @@ Index: client/CMakeLists.txt
        else()
          target_compile_definitions(odamex PRIVATE /arch:SSE2)
        endif()
+       message(STATUS "Default SIMD flags set to SSE2")
+     elseif(ODAMEX_TARGET_ARCH MATCHES "ppc")
+-      target_compile_definitions(odamex PRIVATE -faltivec)
++      target_compile_options(odamex PRIVATE -faltivec)
+       message(STATUS "Default SIMD flags set to AltiVec")
+     endif()
+   else()
 @@ -220,7 +220,7 @@ if(TARGET SDL2::SDL2 OR TARGET SDL::SDL)
    endif()
  
-- 
Best Regards
Edd Barrett

https://www.theunixzoo.co.uk

Reply via email to