Skip to content

Commit b3c221a

Browse files
Alexpuxlazka
authored andcommitted
pkg config windows must link ext with python lib
1 parent 9edf05a commit b3c221a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Misc/python.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Description: Build a C extension for Python
99
Requires:
1010
Version: @VERSION@
1111
Libs.private: @LIBS@
12-
Libs:
12+
Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@
1313
Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5973,7 +5973,7 @@ AC_MSG_RESULT($LDVERSION)
59735973

59745974
# On Android and Cygwin the shared libraries must be linked with libpython.
59755975
AC_SUBST(LIBPYTHON)
5976-
if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
5976+
if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin" -o "$MACHDEP" = "win32"; then
59775977
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
59785978
else
59795979
LIBPYTHON=''

0 commit comments

Comments
 (0)