diff --git a/srcpkgs/python-gobject2/template b/srcpkgs/python-gobject2/template index a63245db388..e7959eca800 100644 --- a/srcpkgs/python-gobject2/template +++ b/srcpkgs/python-gobject2/template @@ -20,8 +20,7 @@ checksum=bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a pre_configure() { NOCONFIGURE=1 autoreconf -fi if [ "$CROSS_BUILD" ]; then - # Fix path to the python-config wrapper. - sed -e "s,^PYTHON_CONFIG=.*,PYTHON_CONFIG=${XBPS_WRAPPERDIR}/python-config,g" -i configure + sed -i "s,\(PYTHON_INCLUDES\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure fi }