|
43 | 43 | <cppflag value="-std=c++11" if="HXCPP_CPP11" /> |
44 | 44 | <cppflag value="-U__STRICT_ANSI__" /> |
45 | 45 | <flag value="-m32" unless="HXCPP_M64"/> |
| 46 | + <flag value="-m64" if="HXCPP_M64"/> |
46 | 47 | <flag value="-DHXCPP_M64" if="HXCPP_M64"/> |
47 | 48 | <flag value="-I${HXCPP}/include"/> |
48 | 49 | <objdir value="obj/mingw${OBJEXT}/"/> |
|
56 | 57 | <flag value="-debug" if="debug"/> |
57 | 58 | <flag value="--enable-auto-import"/> |
58 | 59 | <flag value="-m32" unless="HXCPP_M64"/> |
| 60 | + <flag value="-m64" if="HXCPP_M64"/> |
59 | 61 | <flag value="-static" if="no_shared_libs"/> |
60 | 62 | <flag value="-static-libgcc" if="no_shared_libs"/> |
61 | 63 | <flag value="-static-libstdc++" if="no_shared_libs"/> |
|
70 | 72 | <flag value="-Wl,--enable-auto-import"/> |
71 | 73 | <flag value="-mwindows" if="SUBSYSTEMWINDOWS" /> |
72 | 74 | <flag value="-m32" unless="HXCPP_M64"/> |
| 75 | + <flag value="-m64" if="HXCPP_M64"/> |
73 | 76 | <flag value="-static" if="no_shared_libs"/> |
74 | | - <flag value="-static-libgcc" if="no_shared_libs" unless="linux_host"/> |
75 | | - <flag value="-static-libstdc++" if="no_shared_libs" unless="linux_host"/> |
76 | | - <flag value="-static-libgcc" if="linux_host"/> |
77 | | - <flag value="-static-libstdc++" if="linux_host"/> |
| 77 | + <flag value="-static-libgcc" if="no_shared_libs" /> |
| 78 | + <flag value="-static-libstdc++" if="no_shared_libs" /> |
78 | 79 | <flag value="-L${MINGW_ROOT}/lib/libs" /> |
79 | 80 | <ext value=".exe"/> |
80 | 81 | <outflag value="-o "/> |
81 | 82 | </linker> |
82 | 83 |
|
83 | | -<copyFile toolId="exe" name="libgcc_s_dw2-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs"/> |
| 84 | +<copyFile toolId="exe" name="libgcc_s_dw2-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs || HXCPP_M64" /> |
| 85 | +<copyFile toolId="exe" name="libgcc_s_seh-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" if="HXCPP_M64" unless="no_shared_libs"/> |
84 | 86 | <copyFile toolId="exe" name="libstdc++-6.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs"/> |
85 | 87 | <copyFile toolId="exe" name="libwinpthread-1.dll" from="${MINGW_ROOT}/sys-root/mingw/bin" allowMissing="true" unless="no_shared_libs"/> |
86 | 88 | <copyFile toolId="exe" name="libwinpthread-1.dll" from="${MINGW_ROOT}/lib" allowMissing="true" unless="no_shared_libs"/> |
| 89 | +<copyFile toolId="exe" name="libwinpthread-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs"/> |
87 | 90 |
|
88 | 91 | <linker id="static_link" exe="ar" > |
89 | 92 | <ext value="${LIBEXT}"/> |
|
0 commit comments