mingw-distro
mingw-distro copied to clipboard
The magic directory surgery in mingw-w64+gcc.sh is annoying
mingw-w64+gcc.sh
contains:
# Prepare to build gcc - perform magic directory surgery.
cp -r dest/x86_64-w64-mingw32/lib dest/x86_64-w64-mingw32/lib64
cp -r dest/x86_64-w64-mingw32 dest/mingw
mkdir -p src/gcc/winsup/mingw
cp -r dest/x86_64-w64-mingw32/include src/gcc/winsup/mingw/include
It's annoying that directories have to be copied around like this. It would be nice if a MinGW/GCC build system expert could fix the upstream sources so that this is unnecessary.
Note that this is a non-critical annoyance because I'm able to delete the copied directories before packaging the component for end users.
When I attempted to build GCC, the above codes seemed to be substitute by:
export CPATH=dest/x86_64-w64-mingw32/include
export LIBRARY_PATH=dest/x86_64-w64-mingw32/lib
I hope that this snippet of codes would work in your build scripts.