mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-24 22:42:58 +02:00
python: remove more references to -specs.
This commit is contained in:
parent
d8bb158cd7
commit
9d426d8a6b
1 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
pkgname=python
|
||||
version=2.7.11
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc="Python-${version}"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="
|
||||
|
@ -72,8 +72,9 @@ post_install() {
|
|||
rm -r ${DESTDIR}/usr/lib/python2.7/test
|
||||
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
|
||||
sed -e 's|\(-specs=.*hardened-ld\)||g' -e 's|\(-specs=.*hardened-cc1\)||g' -i \
|
||||
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \
|
||||
${DESTDIR}/usr/lib/python${version%.*}/config/Makefile
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# Remove references to cross toolchain.
|
||||
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
|
||||
|
|
Loading…
Add table
Reference in a new issue