mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
uwsgi: fix cross
This commit is contained in:
parent
5c3069f586
commit
7682f9b8b9
1 changed files with 27 additions and 11 deletions
|
@ -13,9 +13,6 @@ checksum=75a7d3138cfa9cd81a760c2f8a43f3d80961edc8e4f27043dc1412206c926287
|
||||||
|
|
||||||
_libdir=usr/lib/uwsgi
|
_libdir=usr/lib/uwsgi
|
||||||
|
|
||||||
# XXX
|
|
||||||
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/16129/steps/shell_3/logs/stdio"
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -e "s|uc.get('plugin_dir')|'.'|" \
|
sed -e "s|uc.get('plugin_dir')|'.'|" \
|
||||||
-i uwsgiconfig.py
|
-i uwsgiconfig.py
|
||||||
|
@ -24,9 +21,28 @@ pre_configure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
local _cflags="$CFLAGS"
|
||||||
|
local _ldflags="$LDFLAGS"
|
||||||
|
|
||||||
python uwsgiconfig.py --build core
|
python uwsgiconfig.py --build core
|
||||||
python uwsgiconfig.py --plugin plugins/python core python
|
|
||||||
python3.4 uwsgiconfig.py --plugin plugins/python core python3
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/include/python2.7
|
||||||
|
-I${XBPS_CROSS_BASE}/usr/include"
|
||||||
|
_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/lib/python2.7
|
||||||
|
-L${XBPS_CROSS_BASE}/usr/lib"
|
||||||
|
fi
|
||||||
|
CFLAGS="$_cflags" LDFLAGS="$_ldflags" python uwsgiconfig.py \
|
||||||
|
--plugin plugins/python core python
|
||||||
|
|
||||||
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/include/python3.4m
|
||||||
|
-I${XBPS_CROSS_BASE}/usr/include"
|
||||||
|
_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/lib/python3.4m
|
||||||
|
-L${XBPS_CROSS_BASE}/usr/lib"
|
||||||
|
fi
|
||||||
|
CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3.4 uwsgiconfig.py \
|
||||||
|
--plugin plugins/python core python3
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue