1010 echo " not bash, those previously rising errors are ash/sh/dash/... flavours"
1111fi
1212
13- PYMINOR_DEFAULT=9
13+ PYMINOR_DEFAULT=8
14+ PYMICRO=10
15+
16+ PYMINOR_DEFAULT=7
17+ PYMICRO=10
1418
1519export PYMAJOR=3
1620export PYMINOR=${PYMINOR:- $PYMINOR_DEFAULT }
21+ export PYVER=${PYMAJOR} .${PYMINOR} .${PYMICRO}
1722
18- if echo $PYMINOR | grep -q 7
23+ # echo $PYMINOR |grep -q 7
24+ if false
1925then
20- # python 3.7.x
21- export PYVER=${PYMAJOR} .${PYMINOR} .7
26+ # python 3.7.x
2227 export OPENSSL_VERSION=" 1.0.2t"
2328else
24- # python 3.8.x / 3.9.x
25- # export PYVER=${PYMAJOR}.${PYMINOR}.5
26- export PYVER=${PYMAJOR} .${PYMINOR} .1
29+ # python 3.8.x / 3.9.x
2730 export OPENSSL_VERSION=" 1.1.1h"
2831fi
2932
3033export LIBFFI_VERSION=3.3
3134
32-
3335export HOST_TRIPLET=x86_64-linux-gnu
3436export HOST_TAG=linux-x86_64
3537
@@ -54,7 +56,6 @@ export HOME=${PYTHONPYCACHEPREFIX}
5456# UNITS="unit"
5557UNITS=" "
5658
57-
5859# select a place for android build
5960export ENV=aosp
6061ROOT=" ${ORIGIN} /${ENV} "
@@ -280,6 +281,9 @@ if [ -f CMakeLists.txt ]
280281then
281282 echo " * using previous CMakeLists.txt in $( pwd) "
282283else
284+
285+ # TODO: check wasm/wasi cmake + CMAKE_CACHE_ARGS "-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true"
286+
283287 cat > CMakeLists.txt << END
284288
285289cmake_minimum_required(VERSION 3.13.0)
@@ -729,7 +733,7 @@ export TOOLCHAIN="${ORIGIN}/emsdk/emsdk_env.sh"
729733. $TOOLCHAIN
730734export PATH=" $EMSDK /upstream/emscripten:$BASEPATH "
731735
732- export WCMAKE=" emcmake $CMAKE -Wno-dev -DCMAKE_INSTALL_PREFIX=${APKUSR} "
736+ export WCMAKE=" emcmake $CMAKE -DCMAKE_POSITION_INDEPENDENT_CODE=ON - Wno-dev -DCMAKE_INSTALL_PREFIX=${APKUSR} "
733737
734738cat > ${HOST} /${ABI_NAME} .sh << END
735739#!/bin/sh
834838 then
835839 echo " emsdk libs ready"
836840 else
837- ALL=" struct_info zlib bzip2 freetype harfbuzz ogg vorbis libpng bullet"
841+ ALL=" struct_info libfetch zlib bzip2 freetype harfbuzz ogg vorbis libpng bullet"
838842 for one in $ALL
839843 do
840844 embuilder --pic build $one
0 commit comments