Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The magic directory surgery in mingw-w64+gcc.sh is annoying #7

Open
StephanTLavavej opened this issue Nov 1, 2015 · 3 comments
Open
Assignees

Comments

@StephanTLavavej
Copy link
Owner

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.

@vilyair
Copy link

vilyair commented May 8, 2018

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.

@Peter0x44
Copy link

This is weird, but as far as I can tell, the build script just checks if they exist, it doesn't actually care about the contents of "mingw". So, creating the directories would be fine, there is no need to copy any files.

@StephanTLavavej
Copy link
Owner Author

Interesting, I'll have to try that the next time I build the distro, thanks!

@StephanTLavavej StephanTLavavej self-assigned this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants