Skip to content
MinGW distro build scripts.
Shell
Latest commit 9b716e7 May 29, 2016 @StephanTLavavej Distro 14.0.
README.md:
    Update my webpage link to HTTPS.
    Add a note that updating MSYS2 replaces msys2_shell.bat with msys2_shell.cmd.

boost-bootstrap.patch:
    Boost 1.61.0 fixes #2.

boost.sh:
    Remove cxxflags="-std=c++14", now that GCC 6.1.0 defaults to C++14.
    Add --without-python, since this isn't being correctly detected anymore.

glbinding.patch:
    Add an option to use Boost.Thread, because libstdc++
        doesn't natively support Windows threads.

glbinding.sh,
glew-core.patch,
glew.sh:
    Replace GLEW with glbinding, fixing #9.

grep+lame+make+sed.sh:
    Invoke "build_w32.bat gcc", fixing #8.
    Note that this uses -O2 instead of -O3, which is acceptable.
    This also drops -DHAVE_CASE_INSENSITIVE_FS.

mingw-w64+gcc.sh,
mpfr.patch:
    MPFR has post-release patches again.

README.md

MinGW Distro: nuwen.net/mingw.html

Here are the build scripts for my MinGW distro.

You'll need to run them in MSYS2, which you can set up without an installer:

  • Go to: https://sourceforge.net/projects/msys2/files/Base/x86_64/
  • Download: msys2-base-x86_64-20160205.tar.xz
  • Extract it to: C:\Temp\gcc\msys64
  • Run: msys2_shell.bat
  • RECYCLE MSYS2, which means:
    • Close MSYS2 by clicking the window's red X. (Don't type exit.)
    • In Task Manager, terminate pacman.exe if it's still running. (Sometimes it will, sometimes it won't.)
    • Restart MSYS2.
  • In MSYS2, run: update-core
  • RECYCLE MSYS2.
  • In MSYS2, run: pacman -Syuu
  • RECYCLE MSYS2. Note that from now on, you'll need to run: msys2_shell.cmd
  • Repeat the previous two steps until you see this:
$ pacman -Syuu
:: Synchronizing package databases...
 mingw32 is up to date
 mingw64 is up to date
 msys is up to date
:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
 there is nothing to do
  • In MSYS2, run: pacman -Su cmake diffutils make nasm patch tar texinfo
  • RECYCLE MSYS2.

Important Notes

The build scripts assume that they can use C:\Temp\gcc as a working directory and that they do not live directly within it. They also assume that they live next to the sources. I generally put both of them into C:\Temp\gcc\sources-VERSION .

I highly recommend that you execute each build script by hand before attempting to run it in one shot.

Stephan T. Lavavej - stl@nuwen.net

Something went wrong with that request. Please try again.