Skip to content

Commit 81376fe

Browse files
gh-128321: Set LIBS instead of LDFLAGS when checking sqlite3 requirements (#128322)
Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent ef63cca commit 81376fe

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Set ``LIBS`` instead of ``LDFLAGS`` when checking if :mod:`sqlite3` library
2+
functions are available. This fixes the ordering of linked libraries during
3+
checks, which was incorrect when using a statically linked ``libsqlite3``.

configure

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -4220,7 +4220,7 @@ WITH_SAVE_ENV([
42204220
dnl bpo-45774/GH-29507: The CPP check in AC_CHECK_HEADER can fail on FreeBSD,
42214221
dnl hence CPPFLAGS instead of CFLAGS.
42224222
CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
4223-
LDFLAGS="$LIBSQLITE3_LIBS $LDFLAGS"
4223+
LIBS="$LIBSQLITE3_LIBS $LIBS"
42244224
42254225
AC_CHECK_HEADER([sqlite3.h], [
42264226
have_sqlite3=yes

0 commit comments

Comments
 (0)