close
Skip to content

bpo-37631: Append $(EXTRA_CFLAGS) to $(CFLAGS_NODIST) as well - #15020

Closed
hroncok wants to merge 1 commit into
python:masterfrom
hroncok:bpo37631
Closed

bpo-37631: Append $(EXTRA_CFLAGS) to $(CFLAGS_NODIST) as well#15020
hroncok wants to merge 1 commit into
python:masterfrom
hroncok:bpo37631

Conversation

@hroncok

@hroncok hroncok commented Jul 30, 2019

Copy link
Copy Markdown
Contributor

Previously, the $(EXTRA_CFLAGS) were only appended to $(CFLAGS),
hence any conflicting $(CFLAGS_NODIST) would override them,
as $(CFLAGS_NODIST) is appended to $(CFLAGS).

For example CFLAGS_NODIST="-O2" EXTRA_CFLAGS="-Og" would result in optimized
build instead of the debug one.

https://bugs.python.org/issue37631

Previously, the $(EXTRA_CFLAGS) were only appended to $(CFLAGS),
hence any conflicting $(CFLAGS_NODIST) would override them,
as $(CFLAGS_NODIST) is appended to $(CFLAGS).

For example `CFLAGS_NODIST="-O2" EXTRA_CFLAGS="-Og"` would result in optimized
build instead of the debug one.

@mangrisano mangrisano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@encukou

encukou commented Sep 12, 2019

Copy link
Copy Markdown
Member

This is an OK downstream patch, but it's clearly not ideal. It duplicates %(EXTRA_CFLAGS). We won't accept it for CPython.
Fixing this properly will be a major project.

@encukou encukou closed this Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants