shadowm

Untitled

Nov 23rd, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. Cross-compiling Boost:
  2.  
  3. ./boostrap.sh
  4. ./b2 -d+2 --with-test --with-locale --with-thread --with-iostreams --with-regex --with-filesystem --with-system --with-program_options threadapi=win32 --layout=system target-os=windows link=static variant=release --with-random cxxflags=-I$HOME/win32/wesnoth-xcompile-sdk/include linkflags=-L$HOME/win32/wesnoth-xcompile-sdk/lib --prefix=$HOME/win32/wesnoth-xcompile-sdk/boost -j8 install
  5.  
  6. (See #wesnoth-dev 2015-07-21/22)
  7.  
  8. Cross-compiling Wesnoth:
  9.  
  10. cd <source tree root>
  11. mkdir <name>
  12.  
  13. scons -Y .. --option-cache=./.scons-option-cache host=i686-w64-mingw32 openmp=true default_targets=all extra_flags_config='-DBOOST_THREAD_USE_LIB -pipe' extra_flags_release='-O3' prefix=$HOME/win32/wesnoth-xcompile-sdk gtkdir=$HOME/win32/wesnoth-xcompile-sdk gettextdir=$HOME/win32/wesnoth-xcompile-sdk boostdir=$HOME/win32/wesnoth-xcompile-sdk/boost/include boostlibdir=$HOME/win32/wesnoth-xcompile-sdk/boost/lib jobs=8 strict=false ccache=true -j8
  14.  
  15. (test target will fail to link)
  16. (strict=yes is unusable due to linker warnings about section size mismatches)
Advertisement
Add Comment
Please, Sign In to add comment