Skip to content

gh-116622: Rename build variable MODULE_LDFLAGS back to LIBPYTHON - #122764

Merged
erlend-aasland merged 1 commit into
python:mainfrom
mhsmith:libpython-variable
Aug 8, 2024
Merged

gh-116622: Rename build variable MODULE_LDFLAGS back to LIBPYTHON#122764
erlend-aasland merged 1 commit into
python:mainfrom
mhsmith:libpython-variable

Conversation

@mhsmith

@mhsmithmhsmith commented Aug 6, 2024

Copy link
Copy Markdown
Member

This variable was renamed to MODULE_LDFLAGS in #115780, but as discussed at #115780 (comment), Meson depends on the old name LIBPYTHON. Some other package build scripts probably have the same issue.

@rgommersrgommers 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.

Thank you for this fix @mhsmith, much appreciated.

I did do a quick check - this rename is complete, no `MODULE_LDFLAGS left except for the news snippet added here.

@erlend-aaslanderlend-aasland 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.

Thanks for fixing this!

@mhsmith

Copy link
Copy Markdown
MemberAuthor

@erlend-aasland: Thanks; are you able to merge this? There will also be a 3.13 backport.

@erlend-aasland
erlend-aasland merged commit 2f5c3b0 into python:mainAug 8, 2024
@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 8, 2024
…ON (pythonGH-122764)
(LIBPYTHON was renamed MODULE_LDFLAGS in commit 7f5e3f0.)
(cherry picked from commit 2f5c3b0)
Co-authored-by: Malcolm Smith <smith@chaquo.com>
@bedevere-app

Copy link
Copy Markdown

GH-122842 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Aug 8, 2024
gpshead pushed a commit that referenced this pull request Aug 9, 2024
…HON (GH-122764) (GH-122842)
gh-116622: Rename build variable MODULE_LDFLAGS back to LIBPYTHON (GH-122764)
(LIBPYTHON was renamed MODULE_LDFLAGS in commit 7f5e3f0.)
(cherry picked from commit 2f5c3b0)
Co-authored-by: Malcolm Smith <smith@chaquo.com>
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
@lazka

lazka commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

Could it be that pkg-config is not used on Android? After this the .pc file contains this under cygwin:

Libs: -L${libdir} $(BLDLIBRARY)

which is not valid syntax. I'd assume it is broken under Android too.

edit: (or maybe it was the previous change this tried to fix?)

@lazka

Copy link
Copy Markdown
Contributor

yes, also broken for Android, I've filed #138800

Sign up for freeto 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.

4 participants

@mhsmith@lazka@rgommers@erlend-aasland