more build stuff

This commit is contained in:
Jay Lee
2019-04-23 13:38:27 -04:00
parent 2f0fa38f3d
commit a62a7d4da4
2 changed files with 7 additions and 6 deletions

View File

@@ -8,14 +8,15 @@ echo "Installing StaticX deps..."
sudo apt-get --yes install binutils patchelf
mypath=$HOME
cpucount=$(nproc --all)
# Compile latest OpenSSL
OPENSSL_VER=1.1.1b
wget https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz
tar xf openssl-$OPENSSL_VER.tar.gz
cd openssl-$OPENSSL_VER
./config shared --prefix=$mypath/ssl
make
make install
make -j$cpucount > /dev/null
make install > /dev/null
cd ~
# Compile latest Python
@@ -24,9 +25,9 @@ wget https://www.python.org/ftp/python/$PYTHON_VER/Python-$PYTHON_VER.tar.xz
tar xf Python-$PYTHON_VER.tar.xz
cd Python-$PYTHON_VER
./configure --with-openssl=$mypath/ssl --enable-optimizations --enable-shared \
--prefix=$mypath/python --with-ensurepip=upgrade
make
make install
--prefix=$mypath/python --with-ensurepip=upgrade > /dev/null
make -j$cpucount > /dev/null
make install > /dev/null
cd ~
export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib

View File

@@ -1,5 +1,5 @@
cd src
pyinstaller --clean --debug -F --distpath=gam $GAMOS-gam.spec
$python -OO -m PyInstaller --clean --debug -F --distpath=gam $GAMOS-gam.spec
gam/gam version
export GAMVERSION=`gam/gam version simple`
cp LICENSE gam