Skip to content

Use CPPFLAGS alongside CFLAGS and CXXFLAGS during build. - #502

Merged
alanminko merged 1 commit into
berkeley-abc:masterfrom
petterreinholdtsen:make-cppflags
May 3, 2026
Merged

Use CPPFLAGS alongside CFLAGS and CXXFLAGS during build.#502
alanminko merged 1 commit into
berkeley-abc:masterfrom
petterreinholdtsen:make-cppflags

Conversation

@petterreinholdtsen

Copy link
Copy Markdown

It is a convention inherited from GNU automake to use CPPFLAGS for compiler flag intended for the preprocessor, while CFLAGS and and CXXFLAGS provide flags intended for the C and C++ compiler. Adjust build rules to include CPPFLAGS ensure any preprocessor flags in build systems using this environment variable work out of the box.

This allow Debian builds to pass on hardening flags without modifying the build setup.

Patch from Ruben Undheim via Debian

It is a convention inherited from GNU automake to use CPPFLAGS
for compiler flag intended for the preprocessor, while CFLAGS and
and CXXFLAGS provide flags intended for the C and C++ compiler.
Adjust build rules to include CPPFLAGS ensure any preprocessor
flags in build systems using this environment variable work out of
the box.

This allow Debian builds to pass on hardening flags without modifying
the build setup.

Patch from Ruben Undheim via Debian
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