File: 02_replace_arch_command.dpatch

package info (click to toggle)
tbb 2.0r020-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,128 kB
  • ctags: 4,501
  • sloc: cpp: 24,707; ansic: 1,563; asm: 777; makefile: 470; sh: 175
file content (27 lines) | stat: -rw-r--r-- 833 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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_replace_arch_command.dpatch by  <roberto@connexer.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Replace obsolote arch command with uname -m

@DPATCH@

--- tbb-2.0r014/build/linux.inc	2007-09-21 21:16:34.000000000 -0400
+++ tbb-2.0r014.test/build/linux.inc	2007-12-15 17:55:04.000000000 -0500
@@ -25,13 +25,13 @@
 # the GNU General Public License.
 
 ifndef arch
-        ifeq ($(shell arch),i686)
+        ifeq ($(shell uname -m),i686)
                 export arch:=ia32
         endif
-        ifeq ($(shell arch),ia64)
+        ifeq ($(shell uname -m),ia64)
                 export arch:=itanium
         endif
-        ifeq ($(shell arch),x86_64)
+        ifeq ($(shell uname -m),x86_64)
                 export arch:=em64t
         endif
 endif