This commit is contained in:
Jay Lee
2019-09-27 19:52:37 -04:00
parent 8360019080
commit cb24d3bf78
2 changed files with 3 additions and 15 deletions

View File

@@ -55,13 +55,12 @@ else
cd Python-$BUILD_PYTHON_VERSION
echo "Compiling Python $BUILD_PYTHON_VERSION..."
safe_flags="--with-openssl=$mypath/ssl --enable-shared --prefix=$mypath/python --with-ensurepip=upgrade"
unsafe_flags="--enable-optimizations --with-lto"
unsafe_flags="--enable-optimizations --with-lto"
if [ ! -e Makefile ]; then
echo "running configure with safe and unsafe"
./configure $safe_flags $unsafe_flags > /dev/null
fi
make -j$cpucount PROFILE_TASK="-m test.regrtest --pgo -j$cpucount" -s
make -j$cpucount PROFILE_TASK="-m test.regrtest --pgo -j$(( $cpucount * 2 ))" -s
RESULT=$?
echo "First make exited with $RESULT"
if [ $RESULT != 0 ]; then
@@ -93,15 +92,6 @@ else
make
sudo make install
fi
if [ ! -d musl=$MUSL_VERSION ]; then
echo "Downloading MUSL $MUSL_VERSION"
wget https://www.musl-libc.org/releases/musl-$MUSL_VERSION.tar.gz
tar xf musl-$MUSL_VERSION.tar.gz
cd musl-$MUSL_VERSION
./configure
make
sudo make install
fi
$pip install git+https://github.com/JonathonReinhart/staticx.git@master
fi
cd $whereibelong

View File

@@ -3,7 +3,7 @@ whereibelong=$(pwd)
#echo "Brew installing xz..."
#brew install xz > /dev/null
brew upgrade
#brew upgrade
cd ~/pybuild
@@ -14,8 +14,6 @@ cd ~/pybuild
brew install openssl@1.1
brew upgrade python
brew ls --verbose openssl@1.1 | grep libssl
brew ls --verbose python3 | grep lib
export python=python3
export pip=pip3