python: remove references to -specs.
This commit is contained in:
parent
c5e5932f09
commit
c4d829ce5e
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
pkgname=python
|
pkgname=python
|
||||||
version=2.7.11
|
version=2.7.11
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="Python-${version}"
|
wrksrc="Python-${version}"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="
|
makedepends="
|
||||||
|
@ -71,6 +71,9 @@ post_install() {
|
||||||
# Remove test module and tests that fail to be byte-compiled.
|
# Remove test module and tests that fail to be byte-compiled.
|
||||||
rm -r ${DESTDIR}/usr/lib/python2.7/test
|
rm -r ${DESTDIR}/usr/lib/python2.7/test
|
||||||
rm -r ${DESTDIR}/usr/lib/python2.7/lib2to3/tests
|
rm -r ${DESTDIR}/usr/lib/python2.7/lib2to3/tests
|
||||||
|
# Remove references to hardening -specs.
|
||||||
|
sed -e 's|\(-specs=.*hardened-ld\)||g' -e 's|\(-specs=.*hardened-cc1\)||g' \
|
||||||
|
-i ${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Remove references to cross toolchain.
|
# Remove references to cross toolchain.
|
||||||
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
|
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
|
||||||
|
|
Loading…
Reference in New Issue