Check-in [e89c02337a]
Overview
Comment:Win64 build fixes
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e89c02337af6eb9d834ebd44191db5bf4b5cf108
User & Date: rkeene on 2014-05-18 21:05:34
Other Links: manifest | tags
Context
2014-05-18
21:05
tcc4tcl 0.11 check-in: d685bad77a user: rkeene tags: trunk, 0.11
21:05
Win64 build fixes check-in: e89c02337a user: rkeene tags: trunk
20:46
Updated to pass compiler information to TCC and support basic multilib (-m32/-m64) compilers check-in: 8112d63e73 user: rkeene tags: trunk
Changes

Modified build/tcc-patches/0.9.26/tcc-0.9.26-crosscompilefixes.diff from [b603edb09a] to [ff4d7758ed].

1
2
3
4
5
6
7
8
9
10
...
156
157
158
159
160
161
162



















163
164
165
166
167
168
169
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 15:45:41.137516999 -0500
@@ -46,16 +46,8 @@
 tcc_lddir=
 confvars=
 
-cpu=`uname -m`
-
-# OS specific
................................................................................
 exit 1
 fi
 
-cc="${cross_prefix}${cc}"
 ar="${cross_prefix}${ar}"
 strip="${cross_prefix}${strip}"
 



















diff -uNr tcc-0.9.26.orig/lib/Makefile tcc-0.9.26-1crosscompilefixes/lib/Makefile
--- tcc-0.9.26.orig/lib/Makefile	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/lib/Makefile	2014-05-16 23:59:18.019016999 -0500
@@ -25,6 +25,12 @@
    XCC = $(CC)
   endif
  endif


|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
...
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
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
................................................................................
 exit 1
 fi
 
-cc="${cross_prefix}${cc}"
 ar="${cross_prefix}${ar}"
 strip="${cross_prefix}${strip}"
 
@@ -446,8 +460,16 @@
   echo "CONFIG_NOLDL=yes" >> config.mak
 fi
 if test "$mingw32" = "yes" ; then
-  echo "CONFIG_WIN32=yes" >> config.mak
-  echo "#define CONFIG_WIN32 1" >> $TMPH
+  case "$cpu" in
+    x86-64)
+      echo "CONFIG_WIN64=yes" >> config.mak
+      echo "#define CONFIG_WIN64 1" >> $TMPH
+      ;;
+    *)
+      echo "CONFIG_WIN32=yes" >> config.mak
+      echo "#define CONFIG_WIN32 1" >> $TMPH
+      ;;
+  esac
 fi
 if test "$cygwin" = "yes" ; then
   echo "#ifndef _WIN32" >> $TMPH
diff -uNr tcc-0.9.26.orig/lib/Makefile tcc-0.9.26-1crosscompilefixes/lib/Makefile
--- tcc-0.9.26.orig/lib/Makefile	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/lib/Makefile	2014-05-16 23:59:18.019016999 -0500
@@ -25,6 +25,12 @@
    XCC = $(CC)
   endif
  endif