common/wrapper: python*-config: answer --includes
We haven't run into trouble with this because most configure script check if $PYTHON-config exist, thus force packager uses /usr/bin/python{,3}
This commit is contained in:
parent
e283a9a83d
commit
74f0186fd9
|
@ -70,10 +70,11 @@ python_wrapper() {
|
|||
[ -x ${XBPS_WRAPPERDIR}/${wrapper} ] && return 0
|
||||
cat >>${XBPS_WRAPPERDIR}/${wrapper}<<_EOF
|
||||
#!/bin/sh
|
||||
if [ "\$1" = "--includes" ]; then
|
||||
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}"
|
||||
fi
|
||||
exit \$?
|
||||
case "\$1" in
|
||||
--includes|--cflags)
|
||||
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}" ;;
|
||||
esac
|
||||
exit 0
|
||||
_EOF
|
||||
chmod 755 ${XBPS_WRAPPERDIR}/${wrapper}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue