-
Notifications
You must be signed in to change notification settings - Fork 12
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
Makefile: Fix for {Net,Free,Open}BSD and generic $CFLAGS in environ #36
Conversation
This has been compile tested on: FreeBSD 14 |
There may be a bug with Alpine Linux? Investigating...
|
f8d5812
to
486f069
Compare
[2024-01-22 10:35:25-0800] @feld
There may be a bug with Alpine Linux? Investigating...
Addressed with adding the POSIX define on everything but NetBSD, works on NetBSD 9.3 and *-linux-{gnu,musl}.
|
486f069
to
cc289fc
Compare
The force pushed version appears to have fixed it |
MacOS is breaking with the latest change as it doesn't like |
cc289fc
to
0d6337c
Compare
MacOS build now working |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the support and general Makefile cleanup!
- `CFLAGS ?=` inherits from the environment, so shouldn't have -std=c99 - In practice everything but Darwin uses `-shared` - NetBSD and MacOS have a broken CMSG_DATA macro when -D_POSIX_C_SOURCE=200809L is set their bug but probably better to make it work for now, specially in MacOS case
0d6337c
to
4496a69
Compare
bleh, I just did a clean build on my FreeBSD box and it's also blowing up with |
@feld so the Makefile still does not work for FreeBSD is it? If you have a fix, please share |
CFLAGS ?=
inherits from the environment, so shouldn't have -std=c99-shared
their bug but probably better to make it work for now