Skip to content

Use CPPFLAGS alongside CFLAGS and CXXFLAGS during build.#502

Open
petterreinholdtsen wants to merge 1 commit intoberkeley-abc:masterfrom
petterreinholdtsen:make-cppflags
Open

Use CPPFLAGS alongside CFLAGS and CXXFLAGS during build.#502
petterreinholdtsen wants to merge 1 commit intoberkeley-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.

1 participant