Building on Microsoft Windows: Difference between revisions

Jump to navigation Jump to search
→‎Building natively (MSYS2): Don't use cross-compilers
(→‎Building natively (MSYS2): Update "make" command after upstream bug fix.)
(→‎Building natively (MSYS2): Don't use cross-compilers)
(One intermediate revision by the same user not shown)
Line 103: Line 103:
Using ccache is optional. It speeds up compilation time but needs several GiB free disk space for its cache. If disk space is an issue, this step can be skipped. To prepend the path to the ccache helper scripts to the front of the PATH variable, add the following line near the end of the {{Path|.bash_profile}} file in your MSYS2 {{Path|$HOME}} directory:
Using ccache is optional. It speeds up compilation time but needs several GiB free disk space for its cache. If disk space is an issue, this step can be skipped. To prepend the path to the ccache helper scripts to the front of the PATH variable, add the following line near the end of the {{Path|.bash_profile}} file in your MSYS2 {{Path|$HOME}} directory:
<syntaxhighlight lang="bash">export PATH="/mingw64/lib/ccache/bin:$PATH"</syntaxhighlight>
<syntaxhighlight lang="bash">export PATH="/mingw64/lib/ccache/bin:$PATH"</syntaxhighlight>
Additionally, add the following line to the {{Path|.bash_profile}} file in your MSYS2 {{Path|$HOME}} directory to allow successfully calling programs from perl scripts:
<syntaxhighlight lang="bash">export PERL5SHELL="bash -l -c"</syntaxhighlight>


Like installing the build dependencies, this has to be done only once.
Like installing the build dependencies, this has to be done only once.
Line 117: Line 120:
Configure with the following flags:
Configure with the following flags:
<syntaxhighlight lang="bash">../configure \
<syntaxhighlight lang="bash">../configure \
  CC="x86_64-w64-mingw32-gcc" \
  CXX="x86_64-w64-mingw32-g++" \
  F77="x86_64-w64-mingw32-gfortran" \
   --disable-docs \
   --disable-docs \
   ac_cv_search_tputs=-ltermcap</syntaxhighlight>
   ac_cv_search_tputs=-ltermcap</syntaxhighlight>
216

edits

Navigation menu