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
1 changed files with 5 additions and 4 deletions
|
@ -70,10 +70,11 @@ python_wrapper() {
|
||||||
[ -x ${XBPS_WRAPPERDIR}/${wrapper} ] && return 0
|
[ -x ${XBPS_WRAPPERDIR}/${wrapper} ] && return 0
|
||||||
cat >>${XBPS_WRAPPERDIR}/${wrapper}<<_EOF
|
cat >>${XBPS_WRAPPERDIR}/${wrapper}<<_EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "\$1" = "--includes" ]; then
|
case "\$1" in
|
||||||
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}"
|
--includes|--cflags)
|
||||||
fi
|
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}" ;;
|
||||||
exit \$?
|
esac
|
||||||
|
exit 0
|
||||||
_EOF
|
_EOF
|
||||||
chmod 755 ${XBPS_WRAPPERDIR}/${wrapper}
|
chmod 755 ${XBPS_WRAPPERDIR}/${wrapper}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue