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

Support Win32 compilation with Mingw #131

Merged
merged 10 commits into from Jan 16, 2016
Merged

Conversation

jbkempf
Copy link
Contributor

@jbkempf jbkempf commented Jan 8, 2016

This is a set of patches that should allow to cross-compile this library through Mingw on Linux

This is using autotools to compile for Win32, and not the win32build.bat

Some stuff are a bit kludgy to be honest, but the existing code was already a bit weird (nfs_stat declaration is fishy).

Some more work is required, I believe to clean everything for Win32, but this should be a good first step.

jbkempf and others added 10 commits January 8, 2016 22:29
This does not change a thing for MSVC, but This is needed for
Cross-Compiling with Mingw/Mingw-w64
It depends on stat features that are not available
So that the definition and declaration match.

There might be another way, with stat64i32 but I'm not confident it will
work with MSVC
This fixes build with options such as --as-needed that require correct positional argument passing. They also ensure that the right dependency library is used.
@jbkempf
Copy link
Contributor Author

jbkempf commented Jan 16, 2016

Ping :)

sahlberg added a commit that referenced this pull request Jan 16, 2016
Support Win32 compilation with Mingw
@sahlberg sahlberg merged commit 66876e2 into sahlberg:master Jan 16, 2016
@sahlberg
Copy link
Owner

Awesome!

Merged.

@jbkempf
Copy link
Contributor Author

jbkempf commented Jan 16, 2016

Rocks :)

@sahlberg
Copy link
Owner

Could you add a short sentence about MINGW to the README file too ?

On Sat, Jan 16, 2016 at 8:54 AM, Jean-Baptiste Kempf <
notifications@github.com> wrote:

Rocks :)


Reply to this email directly or view it on GitHub
#131 (comment).

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.

None yet

3 participants