Last resort to use /usr/lib in python linking

This commit is contained in:
William S Fulton 2022-03-16 20:20:55 +00:00
commit b433ef9415

View file

@ -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"
;;