-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Generated Makefiles use GNU make specific syntax #299
Comments
As far as I can tell, Ruby's I think Ruby also uses If we added support for BSD make, I think
# gmake -v
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
# bmake -h
usage: bmake [-BeikNnqrstWwX]
[-C directory] [-D variable] [-d flags] [-f makefile]
[-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
[-V variable] [-v variable] [variable=value] [target ...]
I'm not sure it's worth it to do this. It might be better just to document that |
Maybe something similar to this can be used: |
The BSD `make` is not compatible with many directives in GNU make. For FreeBSD and Solaris systems, default to `gmake` so that native gem builds work without having to specify `MAKE=gmake` in the environment. Relates to: * oxidize-rb/rb-sys#299 * redis/hiredis-rb#23
That could work. I submitted rubygems/rubygems#7348. |
The BSD `make` is not compatible with many directives in GNU make. For FreeBSD and Solaris systems, default to `gmake` so that native gem builds work without having to specify `MAKE=gmake` in the environment. Relates to: * oxidize-rb/rb-sys#299 * redis/hiredis-rb#23
I think the ultimate solution will be to compile to a generic-enough Make syntax to not break... tedious change though. Maybe in the meantime we can add a warning / better error message @stanhu |
Ruby's mkmf is designed to support both GNU make and BSD make (and Ruby itself can be built with both GNU make and BSD make), and it would be nice if the
Makefile
s produced bycreate_rust_makefile
worked with both.Example (using commonmarker gem, attempting to build on OpenBSD):
The text was updated successfully, but these errors were encountered: