Skip to content

Conversation

@joe-lawrence
Copy link
Contributor

Add -std=gnu11 to CFLAGS for kpatch-build tooling. This aligns with the kernel build and avoids confusion when older tooling may default to earlier versions.

Closes: #1416 ("C99 code vs. gcc defaults?")

Add -std=gnu11 to CFLAGS for kpatch-build tooling.  This aligns with the
kernel build and avoids confusion when older tooling may default to
earlier versions.

Closes: dynup#1416 ("C99 code vs. gcc defaults?")
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
@joe-lawrence
Copy link
Contributor Author

v2: filter out the -std option for C++ PLUGIN_CFLAGS to avoid:

cc1plus: error: command line option ‘-std=gnu11’ is valid for C/ObjC but not for C++ [-Werror]

@joe-lawrence joe-lawrence merged commit 3dd3e58 into dynup:master Oct 10, 2024
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.

C99 code vs. gcc defaults?

2 participants