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