File: fix-armel.patch

package info (click to toggle)
tbb 2020.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,844 kB
  • sloc: cpp: 142,989; ansic: 11,007; makefile: 1,367; python: 860; asm: 517; sh: 406; javascript: 215; lisp: 198; objc: 176; pascal: 65
file content (30 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Allow TBB to build on armel systems (__ARM_ARCH == 4)
Author: Steve Capper <steven.capper@gmail.com>

--- a/src/tbbmalloc/frontend.cpp
+++ b/src/tbbmalloc/frontend.cpp
@@ -773,7 +773,7 @@
 # else
 #   error highestBitPos() not implemented for this platform
 # endif
-#elif __arm__
+#elif __ARM_ARCH_7A__
     __asm__ __volatile__
     (
        "clz %0, %1\n"
--- a/build/linux.inc
+++ b/build/linux.inc
@@ -54,9 +54,12 @@
         ifeq ($(uname_m),sparc64)
                 export arch:=sparc64
         endif
-        ifeq ($(uname_m),armv7l)
+        ifeq ($(deb_host_arch),armhf)
                 export arch:=armv7
         endif
+	ifeq ($(deb_host_arch),armel)
+		export arch:=armv4t
+	endif
         ifeq ($(uname_m),ppc)
                 export arch:=ppc32
         endif