fontforge/Solve-fontforge-20170731-build-fails-with-python-3.8.patch

26 lines
1.0 KiB
Diff

From f9474602e7dbdf1901187406862ef23810f38f6f Mon Sep 17 00:00:00 2001
From: lyn1001 <thistleslyn@163.com>
Date: Mon, 22 Jun 2020 09:55:08 +0800
Subject: [PATCH] fontforge-20170731-python-3.8-pkg-config
---
fontforge-20170731/m4/fontforge_arg_enable.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/m4/fontforge_arg_enable.m4 b/m4/fontforge_arg_enable.m4
index 661c557..6b87dc4 100644
--- a/m4/fontforge_arg_enable.m4
+++ b/m4/fontforge_arg_enable.m4
@@ -35,7 +35,7 @@ AC_ARG_ENABLE([python-scripting],
[i_do_have_python_scripting=yes])
if test x"${i_do_have_python_scripting}" = xyes; then
AM_PATH_PYTHON([2.7])
- PKG_CHECK_MODULES([PYTHON],[python-"${PYTHON_VERSION}"],,[i_do_have_python_scripting=no; force_off_python_extension=yes])
+ PKG_CHECK_MODULES([PYTHON],[python-"${PYTHON_VERSION}"-embed],,[i_do_have_python_scripting=no; force_off_python_extension=yes])
fi
if test x"${i_do_have_python_scripting}" != xyes; then
AC_DEFINE([_NO_PYTHON],1,[Define if not using Python.])
--
2.23.0