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 with -D_DEFAULT_SOURCE along with -std=c11 #4635

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

fweimer-rh
Copy link
Contributor

On its own, -std=c11 hides POSIX and other extensions from C headers such as <stdlib.h> when building against glibc. This causes the posix_memalign probe to fail incorrectly with compilers that do not accept implicit function declarations. _DEFAULT_SOURCE is ignored by most non-GNU/Linux systems or not relevant in this context, so there is no separate check for adding it.

Related to:

On its own, -std=c11 hides POSIX and other extensions from C headers
such as <stdlib.h> when building against glibc.  This causes the
posix_memalign probe to fail incorrectly with compilers that do not
accept implicit function declarations.  _DEFAULT_SOURCE is ignored by
most non-GNU/Linux systems or not relevant in this context, so there
is no separate check for adding it.
configure.ac Show resolved Hide resolved
@bluca bluca merged commit 665d1d4 into zeromq:master Nov 29, 2023
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.

2 participants