Skip to content

Commit 2293bf6

Browse files
committed
configure: Work around broken pc file
Invalid "Libs:" value python#138800
1 parent df551d7 commit 2293bf6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6743,6 +6743,10 @@ LIBPYTHON=''
67436743
if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin" || test "$MACHDEP" = "win32"); then
67446744
MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(LDLIBRARY)"
67456745
LIBPYTHON="\$(BLDLIBRARY)"
6746+
LIBPYTHON="$BLDLIBRARY"
6747+
LIBPYTHON=$(echo "$LIBPYTHON" | sed "s/\$(LDVERSION)/$LDVERSION/g")
6748+
LIBPYTHON=$(echo "$LIBPYTHON" | sed "s/\$(VERSION)/$VERSION/g")
6749+
LIBPYTHON=$(echo "$LIBPYTHON" | sed "s/\$(ABIFLAGS)/$ABIFLAGS/g")
67466750
fi
67476751

67486752
# On iOS the shared libraries must be linked with the Python framework

0 commit comments

Comments
 (0)