Skip to content

Conversation

@zanieb
Copy link
Contributor

@zaniebzanieb commented Dec 29, 2024

Closes#128321

See the issue for context.

There are a few alternative approaches we could take, such as:

  • Always including -lm during checks (which would over-link)
  • Using PKG_CHECK_MODULES_STATIC instead of PKG_CHECK_MODULES when shared libraries are disabled

I'm not really sure of the trade-offs. This seems like the simplest approach to unblock users who can set PKG_CONFIG to include the --static flag as mentioned in https://bugs.freedesktop.org/show_bug.cgi?id=19541#c7

@zaniebzanieb changed the title gh-128321: Set LIBS during sqlite3 library build checksgh-128321: Set LIBS instead of LDFLAGS during sqlite3 library build checksDec 30, 2024
@zaniebzanieb marked this pull request as ready for review December 30, 2024 05:24
@erlend-aaslanderlend-aasland merged commit 81376fe into python:mainDec 30, 2024
47 checks passed
@zanieb
Copy link
ContributorAuthor

Thanks for the review!

@miss-islington-app

This comment was marked as outdated.

@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 30, 2024
…quirements (pythonGH-128322) (cherry picked from commit 81376fe) Co-authored-by: Zanie Blue <contact@zanie.dev> Co-authored-by: Erlend E. Aasland <erlend@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 30, 2024
…quirements (pythonGH-128322) (cherry picked from commit 81376fe) Co-authored-by: Zanie Blue <contact@zanie.dev> Co-authored-by: Erlend E. Aasland <erlend@python.org>
@bedevere-app
Copy link

GH-128355 is a backport of this pull request to the 3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12 only security fixes label Dec 30, 2024
@bedevere-app
Copy link

GH-128356 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 Dec 30, 2024
erlend-aasland added a commit that referenced this pull request Dec 30, 2024
…equirements (GH-128322) (#128355) (cherry picked from commit 81376fe) Co-authored-by: Zanie Blue <contact@zanie.dev> Co-authored-by: Erlend E. Aasland <erlend@python.org>
erlend-aasland added a commit that referenced this pull request Dec 30, 2024
…equirements (GH-128322) (#128356) (cherry picked from commit 81376fe) Co-authored-by: Zanie Blue <contact@zanie.dev> Co-authored-by: Erlend E. Aasland <erlend@python.org>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…quirements (python#128322) Co-authored-by: Erlend E. Aasland <erlend@python.org>
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.

Statically linked sqlite3 fails checks due to missing -lm

2 participants

@zanieb@erlend-aasland