Skip to content

gh-54872: Remove default OPT=-O for non-GCC compilers - #142159

Open
bobzinin wants to merge 2 commits into
python:mainfrom
bobzinin:fix-opt-default
Open

gh-54872: Remove default OPT=-O for non-GCC compilers#142159
bobzinin wants to merge 2 commits into
python:mainfrom
bobzinin:fix-opt-default

Conversation

@bobzinin

@bobzininbobzinin commented Dec 1, 2025

Copy link
Copy Markdown

The configure script was setting OPT="-O" by default for non-GCC compilers, which could conflict with user-specified CFLAGS. This change removes the automatic default, allowing users full control over optimization flags via CFLAGS without unexpected conflicts.

The configure script was setting OPT="-O" by default for non-GCC
compilers, which could conflict with user-specified CFLAGS. This
change removes the automatic default, allowing users full control
over optimization flags via CFLAGS without unexpected conflicts.
@bedevere-app

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bobzininbobzinin changed the title gh-54972: Remove default OPT=-O for non-GCC compilersgh-54872: Remove default OPT=-O for non-GCC compilersDec 1, 2025
@python-cla-bot

python-cla-botBot commented Dec 1, 2025

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@StanFromIreland

Copy link
Copy Markdown
Member

You need to run make regen-configure.

@bedevere-app

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label May 2, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewstaleStale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bobzinin@StanFromIreland@jalaheshammohamed-sketch