History

--enable-tcc32-mingw option: build windows version on linux with i386-win-tcc --enable-tcc64-mingw option: build windows version on linux with x86_64-win-tcc

seyko committed 11 years ago

Commit bfb7b0d1 parent 48d12e41 file · +9 −1Browse files

Unified · Split

configure+9−1
@@ -173,6 +173,10 @@ for opt do · 172 unmodified lines
173173 ;;
174174 --enable-cygwin) mingw32="yes" ; cygwin="yes" ; cross_prefix="mingw32-" ; cpu=x86
175175 ;;
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+ ;;
176180 --enable-cross) build_cross="yes"
177181 ;;
178182 --enable-assert) enable_assert="yes"
@@ -302,6 +306,8 @@ Advanced options (experts only): · 123 unmodified lines
302306 --disable-static make libtcc.so instead of libtcc.a
303307 --disable-rpath disable use of -rpath with the above
304308 --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
305311 --enable-mingw32 build windows version on linux with mingw32
306312 --enable-cygwin build windows version on windows with cygwin
307313 --enable-cross build cross compilers
@@ -316,8 +322,10 @@ EOF · 8 unmodified lines
316322 exit 1
317323 fi
318324
325+if test "$cc" != "tcc"; then
326+ ar="${cross_prefix}${ar}"
327+fi
319328 cc="${cross_prefix}${cc}"
320−ar="${cross_prefix}${ar}"
321329 strip="${cross_prefix}${strip}"
322330
323331 CONFTEST=./conftest$EXESUF

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t