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

Build failure with MinGW #130

Open
HuangShumin opened this issue Jan 3, 2024 · 3 comments
Open

Build failure with MinGW #130

HuangShumin opened this issue Jan 3, 2024 · 3 comments

Comments

@HuangShumin
Copy link

Is it possible to support MinGW build?

@Ericson2314
Copy link

I would also appreciate this. In https://github.com/NixOS/nix/blob/8e865f3aba526394ca333efe7258bd8db0050fbb/package.nix#L216 I had to drop this one dep for Nix, losing much functionality. I think Lowdown itself is quite naturally portable, being mainly pure functions, but the "bsd.lv" shared code unfortunately is not because it is checking for various features / using various headers that lowdown itself doesn't actually need.

@HuangShumin
Copy link
Author

I found most parts of compats.c is not portable. Maybe we need a refact for this one.

@the-sun-will-rise-tomorrow

It looks like there is a lot of platform-specific code in compats.c and configure which is actually not used by lowdown.

It seems to be inherited from the oconfigure project, which is a "configuration script for portable, OpenBSD-oriented systems". I don't know if MinGW support would be within that project's scope, but if they would consider supporting it, then maybe it could be upstreamed there.

Otherwise, perhaps lowdown might consider moving away from oconfigure, and to a more cross-platform build/configuration system, such as CMake, meson, or even GNU Autotools?

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