diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-13 22:06:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-14 02:10:13 +0300 |
commit | b15ab01a35ce3682e26aafb5fb1ac0fb98045241 (patch) | |
tree | 344b23d0c5721d1d5c86732c8abf581c3de1a5f1 /build | |
parent | aa629a5b28d83333d083cac24ee9ac815c2ea6e7 (diff) | |
download | manaplus-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.tar.gz manaplus-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.tar.bz2 manaplus-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.tar.xz manaplus-b15ab01a35ce3682e26aafb5fb1ac0fb98045241.zip |
Add support for mingw64 for windows builds.
Diffstat (limited to 'build')
-rwxr-xr-x | build/bcmake | 6 | ||||
-rw-r--r-- | build/toolchain.cmake | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/build/bcmake b/build/bcmake index b994ea7b6..e4ac00022 100755 --- a/build/bcmake +++ b/build/bcmake @@ -2,9 +2,9 @@ cd .. -export PATH=/usr/i586-mingw32msvc/bin:$PATH -export CXXFLAGS="-Wall -g1 -O3" +#export PATH=/usr/i586-mingw32msvc/bin:$PATH +export CXXFLAGS="-Wall -g1 -O3 -static-libstdc++" cmake -DCMAKE_TOOLCHAIN_FILE=build/toolchain.cmake . 2>build/make1.log -make -j5 VERBOSE=1 2>build/make.log +make -j5 VERBOSE=1 2>>build/make.log diff --git a/build/toolchain.cmake b/build/toolchain.cmake index 92415eb1e..1a40095cd 100644 --- a/build/toolchain.cmake +++ b/build/toolchain.cmake @@ -3,7 +3,7 @@ SET(CMAKE_SYSTEM_NAME Windows) # toolchain prefix, can be overridden by -DTOOLCHAIN=... # IF (NOT TOOLCHAIN) -SET(TOOLCHAIN "i586-mingw32msvc-") +SET(TOOLCHAIN "i686-w64-mingw32-") # ENDIF() # which compilers to use for C and C++ @@ -24,7 +24,7 @@ SET(SDL_INCLUDE_DIR ../mana_win/libs/include/SDL) SET(ENABLE_MANASERV OFF) # here is the target environment located -SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc /../mana_win/libs ) +SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 /../mana_win/libs ) # adjust the default behaviour of the FIND_XXX() commands: # search headers and libraries in the target environment, search |