freebsd-ports/devel/gobject-introspection/files/patch-configure
Marcus von Appen 524b46040f - Fix lang/python27's PTH option knob handling. Since
gobject-introspection does not use python-config correctly and PTH
  does not add itself properly to the python-config --includes knob,
  python-config --cflags are needed.

PR:		ports/172190 ports/170754
Submitted by:	Waitman Gobble <uzimac@da3m0n8t3r.com> Shawn Wilson <ag4ve.us@gmail.com>
2012-12-10 19:51:56 +00:00

11 lines
601 B
Text

--- configure.orig 2011-05-02 17:19:45.000000000 -0500
+++ configure 2011-05-02 17:19:58.000000000 -0500
@@ -15983,7 +15983,7 @@
$as_echo_n "checking for headers required to compile python extensions... " >&6; }
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+PYTHON_INCLUDES=`python${PYTHON_VERSION}-config --cflags`
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fi