Skip to content

Instantly share code, notes, and snippets.

@bagder
Created December 1, 2022 14:28
Show Gist options
  • Save bagder/3d29b24b95f8cc462ce10608552f90ba to your computer and use it in GitHub Desktop.
Save bagder/3d29b24b95f8cc462ce10608552f90ba to your computer and use it in GitHub Desktop.
build boringssl for curl
#!/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