libpwquality: fix cross for Python 3.8.
This commit is contained in:
parent
066f4da5ce
commit
bf0eaadd4b
|
@ -17,13 +17,21 @@ checksum=5263e09ee62269c092f790ac159112aed3e66826a795e3afec85fdeac4281c8e
|
|||
|
||||
CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||
|
||||
nocross="https://build.voidlinux.org/builders/aarch64-musl_builder/builds/23760/steps/shell_3/logs/stdio"
|
||||
|
||||
pre_configure() {
|
||||
vsed -i python/Makefile.am -e 's|CFLAGS=.*|LDSHARED="${CC} -pthread -shared" &|g'
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
for f in ${XBPS_CROSS_BASE}/${py3_lib}/_sysconfigdata_*; do
|
||||
f=${f##*/}
|
||||
export _PYTHON_SYSCONFIGDATA_NAME=${f%.py}
|
||||
done
|
||||
export PYTHONPATH=${XBPS_CROSS_BASE}/${py3_lib}
|
||||
fi
|
||||
}
|
||||
|
||||
libpwquality-devel_package() {
|
||||
depends="cracklib-devel ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
|
Loading…
Reference in New Issue