Check-in [9a09044c1d]
Overview
Comment:Added support for additional ways of representing the x86_64 machine name
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9a09044c1d98e21364da5dfb51b60602ee9d6cd8
User & Date: rkeene on 2016-01-25 18:31:57
Other Links: manifest | tags
Context
2016-01-25
18:49
Fixed hash-bang line for header patching script check-in: 256cf626f6 user: rkeene tags: trunk
18:31
Added support for additional ways of representing the x86_64 machine name check-in: 9a09044c1d user: rkeene tags: trunk
18:31
Added support for a ClientData type check-in: 91b1a5ba3d user: rkeene tags: trunk
Changes

Modified build/tcc-patches/0.9.26/tcc-0.9.26-crosscompilefixes.diff from [23c0404150] to [0160b0f15a].

1
2
3
4
5
6
7
8
9
10
..
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
diff -uNr tcc-0.9.26.orig/configure tcc-0.9.26-1crosscompilefixes/configure
--- tcc-0.9.26.orig/configure	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/configure	2014-05-18 16:05:09.907516999 -0500
@@ -46,16 +46,8 @@
 tcc_lddir=
 confvars=
 
-cpu=`uname -m`
-
-# OS specific
................................................................................
+    case " ${cc} ${CFLAGS} " in
+      *' -m64 '*)
+        cpu="x86-64"
+        ;;
+    esac
+
+  ;;
+  x86_64)
+    cpu="x86-64"
+    case " ${cc} ${CFLAGS} " in
+      *' -m32 '*)
+        cpu="x86"
+        ;;
+    esac
+  ;;


|







 







|







1
2
3
4
5
6
7
8
9
10
..
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
diff -uNr tcc-0.9.26.orig/configure tcc-0.9.26-1crosscompilefixes/configure
--- tcc-0.9.26.orig/configure	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/configure	2016-01-25 12:30:28.962892216 -0600
@@ -46,16 +46,8 @@
 tcc_lddir=
 confvars=
 
-cpu=`uname -m`
-
-# OS specific
................................................................................
+    case " ${cc} ${CFLAGS} " in
+      *' -m64 '*)
+        cpu="x86-64"
+        ;;
+    esac
+
+  ;;
+  x86_64|amd64)
+    cpu="x86-64"
+    case " ${cc} ${CFLAGS} " in
+      *' -m32 '*)
+        cpu="x86"
+        ;;
+    esac
+  ;;