summaryrefslogtreecommitdiffhomepage
path: root/auto/modules
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-10-22 16:04:30 +0300
committerMax Romanov <max.romanov@nginx.com>2019-10-22 16:04:30 +0300
commite54f5f3dc8ec281bbc17e4092d168ea32ae099d7 (patch)
treeb3d2065ff2fbb23ee25ddfd6dfd1a17cc16acae3 /auto/modules
parent0beb8ea5e13befbe607a107c3e8093226848811a (diff)
downloadunit-e54f5f3dc8ec281bbc17e4092d168ea32ae099d7.tar.gz
unit-e54f5f3dc8ec281bbc17e4092d168ea32ae099d7.tar.bz2
Python: fixing build for Python 3.8.
Thanks to tonyafanasyev. This is related to #331 issue on GitHub.
Diffstat (limited to '')
-rw-r--r--auto/modules/python4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto/modules/python b/auto/modules/python
index abd145c9..ecf8802a 100644
--- a/auto/modules/python
+++ b/auto/modules/python
@@ -64,6 +64,10 @@ nxt_found=no
if /bin/sh -c "$NXT_PYTHON_CONFIG --prefix" >> $NXT_AUTOCONF_ERR 2>&1; then
+ if ${NXT_PYTHON_CONFIG} --embed 2>/dev/null; then
+ NXT_PYTHON_CONFIG="${NXT_PYTHON_CONFIG} --embed"
+ fi
+
NXT_PYTHON_INCLUDE=`${NXT_PYTHON_CONFIG} --includes`
NXT_PYTHON_LIBS=`${NXT_PYTHON_CONFIG} --ldflags`