From b433ef94159ed523fb18717434921d7f8eaeb9e3 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 16 Mar 2022 20:20:55 +0000 Subject: [PATCH] Last resort to use /usr/lib in python linking --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 7bd9f637f..a7f41a3ba 100644 --- a/configure.ac +++ b/configure.ac @@ -926,6 +926,12 @@ else break fi done + if test -z "$PY3LIB"; then + # Last resort + if test -d $PY3EPREFIX/$PY3LIBDIR; then + PY3LIB="$PY3EPREFIX/$PY3LIBDIR" + fi + fi if test -z "$PY3LIB"; then AC_MSG_RESULT([Not found]) else @@ -946,6 +952,7 @@ else # Cygwin (Windows) needs the library for dynamic linking case $host in *-*-cygwin* | *-*-mingw*) + # PYTHON3DYNAMICLINKING ought to be replaced by $PY3CONFIG --ldflags PYTHON3DYNAMICLINKING="-L$PY3LIB $PY3LINK" DEFS="-DUSE_DL_IMPORT $DEFS" ;;