Last resort to use /usr/lib in python linking
This commit is contained in:
parent
c0f20ff7e0
commit
b433ef9415
1 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue