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

Windows support #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Windows support #9

wants to merge 5 commits into from

Conversation

dra27
Copy link
Member

@dra27 dra27 commented May 11, 2018

DBM was never part of Windows OCaml IIRC, but it's pretty easy to add the mingw ports, which I've done here.

The .gitattributes and .gitignore files are just house-keeping (the former to ensure that the configure script is checked out with Unix line-endings, even on Windows).

I've taken the (optional) step of removing Makefile.config and adding it to .gitignore and to the clean target (it seemed excessive to add distclean just for that?)

The last two commits make building with mingw-w64 easier by:

  1. Defaulting to the C compiler is configured with (means you automatically pick up x86_64-w64-mingw32-gcc
  2. Using GCC's search path to find the headers (means you automatically pick /usr/x86_64-w64-mingw32/sys-root/mingw/include)

dra27 added 5 commits May 11, 2018 12:59
It's possible to persuade GCC to reveal its search path for header
files, which provides a better default for systems compiling with gcc.
It also means that the mingw-w64 libraries are automatically detected.
@dra27
Copy link
Member Author

dra27 commented May 11, 2018

One tiny tweak to the Makefile.config is to use -include so that you can still run make clean without having to re-run configure.

@dra27 dra27 mentioned this pull request May 11, 2018
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

Successfully merging this pull request may close these issues.

1 participant