z3: call python instead of sed'ing mk_make.py shebang
This commit is contained in:
parent
76faa8b364
commit
1a0d242729
@ -10,8 +10,7 @@ termux_step_configure() {
|
||||
_PYTHON_VERSION=$(source $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
|
||||
|
||||
chmod +x scripts/mk_make.py
|
||||
sed '1 s/^.#*$/\#\!\/usr\/bin\/env\ python${_PYTHON_VERSION}/g' -i scripts/mk_make.py
|
||||
CXX="$CXX" CC="$CC" scripts/mk_make.py --prefix=$TERMUX_PREFIX --build=$TERMUX_PKG_BUILDDIR
|
||||
sed 's/..\/..\/..\/..\/..\///g' -i Makefile
|
||||
CXX="$CXX" CC="$CC" python${_PYTHON_VERSION} scripts/mk_make.py --prefix=$TERMUX_PREFIX --build=$TERMUX_PKG_BUILDDIR
|
||||
sed 's%../../../../../%%g' -i Makefile
|
||||
sed 's/\-lpthread//g' -i config.mk
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user