diff options
| author | seyko <seyko2@gmail.com> | 2016-05-20 15:48:02 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-05-20 15:48:02 +0300 |
| commit | 18cbe62e69863e185a69ba7349a5a08f94afecd7 (patch) | |
| tree | 5874d2ad9225919977a981e69c797816554b73de /configure | |
| parent | 824b1b582fc3ef9fb571df68326c7d3ffe411cc4 (diff) | |
| download | tinycc-18cbe62e69863e185a69ba7349a5a08f94afecd7.tar.gz tinycc-18cbe62e69863e185a69ba7349a5a08f94afecd7.tar.bz2 | |
fix a mingw64 build on Linux with --enable-tcc64-mingw
* define CONFIG_WIN64=yes when ARCH=x86-64 (not CONFIG_WIN32=yes)
* CONFIG_WIN64 now use a windows install part (not a Linux one)
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -520,8 +520,13 @@ if test "$noldl" = "yes" ; then echo "CONFIG_NOLDL=yes" >> config.mak fi if test "$mingw32" = "yes" ; then - echo "CONFIG_WIN32=yes" >> config.mak - echo "#define CONFIG_WIN32 1" >> $TMPH + if test "$cpu" = "x86-64"; then + echo "CONFIG_WIN64=yes" >> config.mak + echo "#define CONFIG_WIN64 1" >> $TMPH + else + echo "CONFIG_WIN32=yes" >> config.mak + echo "#define CONFIG_WIN32 1" >> $TMPH + fi fi if test "$cygwin" = "yes" ; then echo "#ifndef _WIN32" >> $TMPH |
