Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Jan 23, 2024
1 parent a2a26d1 commit 555302c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ case "$1" in
sudo chmod 1777 /opt
test -d /opt/cosmo || (wget https://cosmo.zip/pub/cosmocc/cosmocc-3.2.4.zip && sudo unzip cosmocc-3.2.4.zip -d /opt/cosmo)
test -d openssl || git clone --depth=1 https://github.com/openssl/openssl.git -b openssl-3.0 openssl
# see also https://github.com/ahgamut/superconfigure/blob/main/lib/openssl/BUILD.mk
cd openssl
git apply ../.github/openssl_getrandom.diff
./Configure linux-aarch64 --with-rand-seed=getrandom no-asm no-shared no-dso no-engine no-dynamic-engine no-tests -DPURIFY CC="/opt/cosmo/bin/cosmocc -I/opt/cosmos/include -L/opt/cosmos/lib" AR=/opt/cosmo/bin/cosmoar
./Configure linux-aarch64 --with-rand-seed=getrandom no-asm no-shared no-dso no-engine no-dynamic-engine no-pic no-autoalginit no-autoerrinit no-tests -DPURIFY CC="/opt/cosmo/bin/cosmocc -I/opt/cosmo/include -L/opt/cosmo/lib" AR=/opt/cosmo/bin/cosmoar
make -j
cd -
;;
Expand All @@ -55,7 +56,7 @@ case "$1" in
./configure --enable-python --enable-java --enable-ruby --enable-go
;;
ape)
./configure CC=/opt/cosmo/bin/cosmocc INSTALL="/opt/cosmos/bin/cosmoinstall" AR="/opt/cosmos/bin/cosmoar" CRYPTO_CFLAGS="-I$PWD/openssl/include" CRYPTO_LIBS="-L$PWD/openssl -lcrypto" --disable-shared
./configure CC=/opt/cosmo/bin/cosmocc INSTALL="/opt/cosmo/bin/cosmoinstall" AR="/opt/cosmo/bin/cosmoar" CRYPTO_CFLAGS="-I$PWD/openssl/include" CRYPTO_LIBS="-L$PWD/openssl -lcrypto" --disable-shared
echo "#define ossl_unused" >> config.h
echo "#define ossl_inline" >> config.h
echo "#define __owur" >> config.h
Expand Down

0 comments on commit 555302c

Please sign in to comment.