diff options
author | atomlong | 2021-08-28 11:19:04 +0800 |
---|---|---|
committer | atomlong | 2021-08-28 13:15:13 +0800 |
commit | 89a67c05174951d172252b1db96ff93cc4ec4bcd (patch) | |
tree | d8c39fa79b201cf9aea28c51e7446a252ed8fee4 /0087-pkg-config-windows-must-link-ext-with-python-lib.patch | |
parent | cf8d8d8771493a2aa8370ed323d06dc733a84181 (diff) | |
download | aur-89a67c05174951d172252b1db96ff93cc4ec4bcd.tar.gz |
Update to 3.9.6
Diffstat (limited to '0087-pkg-config-windows-must-link-ext-with-python-lib.patch')
-rw-r--r-- | 0087-pkg-config-windows-must-link-ext-with-python-lib.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/0087-pkg-config-windows-must-link-ext-with-python-lib.patch b/0087-pkg-config-windows-must-link-ext-with-python-lib.patch new file mode 100644 index 000000000000..0110603636b0 --- /dev/null +++ b/0087-pkg-config-windows-must-link-ext-with-python-lib.patch @@ -0,0 +1,38 @@ +From 2834911199728b44d81ab258423b7fdbabd4753a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= + <alexey.pawlow@gmail.com> +Date: Thu, 17 Jun 2021 18:52:29 +0530 +Subject: [PATCH 087/N] pkg config windows must link ext with python lib + +--- + Misc/python.pc.in | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Misc/python.pc.in b/Misc/python.pc.in +index 87e04de..3900190 100644 +--- a/Misc/python.pc.in ++++ b/Misc/python.pc.in +@@ -9,5 +9,5 @@ Description: Build a C extension for Python + Requires: + Version: @VERSION@ + Libs.private: @LIBS@ +-Libs: ++Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@ + Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@ +diff --git a/configure.ac b/configure.ac +index fb15812..d8b1eb3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -5149,7 +5149,7 @@ AC_MSG_RESULT($LDVERSION) + + # On Android and Cygwin the shared libraries must be linked with libpython. + AC_SUBST(LIBPYTHON) +-if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then ++if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin" -o "$MACHDEP" = "win"; then + LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" + else + LIBPYTHON='' +-- +2.32.0 + |