mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-128321: Set LIBS instead of LDFLAGS when checking sqlite3 requirements (#128322)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
ef63cca494
commit
81376fef76
3 changed files with 5 additions and 2 deletions
|
|
@ -0,0 +1,3 @@
|
|||
Set ``LIBS`` instead of ``LDFLAGS`` when checking if :mod:`sqlite3` library
|
||||
functions are available. This fixes the ordering of linked libraries during
|
||||
checks, which was incorrect when using a statically linked ``libsqlite3``.
|
||||
2
configure
generated
vendored
2
configure
generated
vendored
|
|
@ -15434,7 +15434,7 @@ save_LIBS=$LIBS
|
|||
|
||||
|
||||
CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
|
||||
LDFLAGS="$LIBSQLITE3_LIBS $LDFLAGS"
|
||||
LIBS="$LIBSQLITE3_LIBS $LIBS"
|
||||
|
||||
ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_sqlite3_h" = xyes
|
||||
|
|
|
|||
|
|
@ -4220,7 +4220,7 @@ WITH_SAVE_ENV([
|
|||
dnl bpo-45774/GH-29507: The CPP check in AC_CHECK_HEADER can fail on FreeBSD,
|
||||
dnl hence CPPFLAGS instead of CFLAGS.
|
||||
CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
|
||||
LDFLAGS="$LIBSQLITE3_LIBS $LDFLAGS"
|
||||
LIBS="$LIBSQLITE3_LIBS $LIBS"
|
||||
|
||||
AC_CHECK_HEADER([sqlite3.h], [
|
||||
have_sqlite3=yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue