Created
December 1, 2022 14:28
-
-
Save bagder/3d29b24b95f8cc462ce10608552f90ba to your computer and use it in GitHub Desktop.
build boringssl for curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CXX=g++ CC=gcc cmake -H. -Bbuild -GNinja -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBS=1 && cmake --build build | |
mkdir -p lib | |
cp ./build/crypto/libcrypto.so ./lib/ | |
cp ./build/ssl/libssl.so ./lib/ | |
cmake --build build --target clean | |
rm -f build/CMakeCache.txt | |
CXX="g++" CC="gcc" cmake -H. -Bbuild -GNinja -DCMAKE_POSITION_INDEPENDENT_CODE=on && cmake --build build | |
cp ./build/crypto/libcrypto.a ./lib/ | |
cp ./build/ssl/libssl.a ./lib/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment