On Sat, Dec 29, 2018 at 07:18:22PM +0100, Pascal Stumpf wrote:
> This is enough to get tbb to build and test successfully on aarch64.
> 
> 
> Index: patches/patch-build_OpenBSD_inc
> ===================================================================
> RCS file: patches/patch-build_OpenBSD_inc
> diff -N patches/patch-build_OpenBSD_inc
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-build_OpenBSD_inc   29 Dec 2018 18:18:06 -0000
> @@ -0,0 +1,15 @@
> +$OpenBSD$
> +
> +Index: build/OpenBSD.inc
> +--- build/OpenBSD.inc.orig
> ++++ build/OpenBSD.inc
> +@@ -24,6 +24,9 @@ ifndef arch
> +         ifeq ($(shell uname -m),amd64)
> +                 export arch:=intel64
> +         endif
> ++    ifeq ($(shell uname -m),arm64)
> ++            export arch:=aarch64
> ++    endif
> + endif
> + 
> + ifndef runtime
> 

It isn't clear where 'arch' is used but compared to the linux .inc there
are cases missing including the fallback.  You have used tabs in a block
that only had spaces.

--- /dev/null   Sun Dec 30 12:57:28 2018
+++ patches/patch-build_OpenBSD_inc     Sun Dec 30 12:56:03 2018
@@ -0,0 +1,29 @@
+$OpenBSD$
+
+Index: build/OpenBSD.inc
+--- build/OpenBSD.inc.orig
++++ build/OpenBSD.inc
+@@ -18,11 +18,21 @@
+ #
+ 
+ ifndef arch
+-        ifeq ($(shell uname -m),i386)
++        uname_p:=$(shell uname -p)
++        ifeq ($(uname_p),i386)
+                 export arch:=ia32
+         endif
+-        ifeq ($(shell uname -m),amd64)
++        ifeq ($(uname_p),amd64)
+                 export arch:=intel64
++        endif
++        ifeq ($(uname_p),sparc64)
++                export arch:=sparc
++        endif
++        ifeq ($(uname_p),arm)
++                export arch:=armv7
++        endif
++        ifndef arch
++                export arch:=$(uname_p)
+         endif
+ endif
+ 

Reply via email to