Unified · Split
| @@ -173,6 +173,10 @@ for opt do · 172 unmodified lines | ||
| 173 | 173 | ;; |
| 174 | 174 | --enable-cygwin) mingw32="yes" ; cygwin="yes" ; cross_prefix="mingw32-" ; cpu=x86 |
| 175 | 175 | ;; |
| 176 | + --enable-tcc32-mingw) mingw32="yes" ; cross_prefix="i386-win-" ; cpu=x86; cc=tcc | |
| 177 | + ;; | |
| 178 | + --enable-tcc64-mingw) mingw32="yes" ; cross_prefix="x86_64-win-" ; cpu=x86_64; cc=tcc | |
| 179 | + ;; | |
| 176 | 180 | --enable-cross) build_cross="yes" |
| 177 | 181 | ;; |
| 178 | 182 | --enable-assert) enable_assert="yes" |
| @@ -302,6 +306,8 @@ Advanced options (experts only): · 123 unmodified lines | ||
| 302 | 306 | --disable-static make libtcc.so instead of libtcc.a |
| 303 | 307 | --disable-rpath disable use of -rpath with the above |
| 304 | 308 | --with-libgcc use libgcc_s.so.1 instead of libtcc1.a in dynamic link |
| 309 | + --enable-tcc64-mingw build windows version on linux with x86_64-win-tcc | |
| 310 | + --enable-tcc32-mingw build windows version on linux with i386-win-tcc | |
| 305 | 311 | --enable-mingw32 build windows version on linux with mingw32 |
| 306 | 312 | --enable-cygwin build windows version on windows with cygwin |
| 307 | 313 | --enable-cross build cross compilers |
| @@ -316,8 +322,10 @@ EOF · 8 unmodified lines | ||
| 316 | 322 | exit 1 |
| 317 | 323 | fi |
| 318 | 324 | |
| 325 | +if test "$cc" != "tcc"; then | |
| 326 | + ar="${cross_prefix}${ar}" | |
| 327 | +fi | |
| 319 | 328 | cc="${cross_prefix}${cc}" |
| 320 | −ar="${cross_prefix}${ar}" | |
| 321 | 329 | strip="${cross_prefix}${strip}" |
| 322 | 330 | |
| 323 | 331 | CONFTEST=./conftest$EXESUF |