1
2
3
4
5
6
7
8
9
10
|
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
|
|
|
1
2
3
4
5
6
7
8
9
10
|
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
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
+ case " ${cc} ${CFLAGS} " in
+ *' -m64 '*)
+ cpu="x86-64"
+ ;;
+ esac
+
+ ;;
+ x86_64)
+ cpu="x86-64"
+ case " ${cc} ${CFLAGS} " in
+ *' -m32 '*)
+ cpu="x86"
+ ;;
+ esac
+ ;;
|
|
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
+ case " ${cc} ${CFLAGS} " in
+ *' -m64 '*)
+ cpu="x86-64"
+ ;;
+ esac
+
+ ;;
+ x86_64|amd64)
+ cpu="x86-64"
+ case " ${cc} ${CFLAGS} " in
+ *' -m32 '*)
+ cpu="x86"
+ ;;
+ esac
+ ;;
|