mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Update build instructions in the README
This commit is contained in:
parent
b1af35d6c0
commit
199c01ab93
1 changed files with 7 additions and 26 deletions
33
README.md
33
README.md
|
@ -61,36 +61,17 @@ git checkout chromium-stable
|
||||||
cmake . && make
|
cmake . && make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Remember where BoringSSL sources are:
|
||||||
|
```
|
||||||
|
BORINGSSL=$PWD
|
||||||
|
```
|
||||||
|
|
||||||
If you want to turn on optimizations, do
|
If you want to turn on optimizations, do
|
||||||
|
|
||||||
```
|
```
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release . && make
|
cmake -DCMAKE_BUILD_TYPE=Release . && make
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Install the library
|
|
||||||
|
|
||||||
This is the manual step. You will need to copy library files manually.
|
|
||||||
LSQUIC client library needs two: `ssl/libssl.a` and `crypto/libcrypto.a`.
|
|
||||||
To install these in `/usr/local/lib`, you should do the following:
|
|
||||||
|
|
||||||
```
|
|
||||||
BORINGSSL_SOURCE=$PWD
|
|
||||||
cd /usr/local/lib
|
|
||||||
sudo cp $BORINGSSL_SOURCE/ssl/libssl.a .
|
|
||||||
sudo cp $BORINGSSL_SOURCE/crypto/libcrypto.a .
|
|
||||||
```
|
|
||||||
|
|
||||||
If you do not want to install the library (or do not have root), you
|
|
||||||
can do this instead:
|
|
||||||
|
|
||||||
```
|
|
||||||
BORINGSSL_SOURCE=$PWD
|
|
||||||
mkdir -p $HOME/tmp/boringssl-libs
|
|
||||||
cd $HOME/tmp/boringssl-libs
|
|
||||||
ln -s $BORINGSSL_SOURCE/ssl/libssl.a
|
|
||||||
ln -s $BORINGSSL_SOURCE/crypto/libcrypto.a
|
|
||||||
```
|
|
||||||
|
|
||||||
Building LSQUIC Client Library
|
Building LSQUIC Client Library
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
@ -108,8 +89,8 @@ cd lsquic-client
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include \
|
# $BORINGSSL is the top-level BoringSSL directory from the previous step
|
||||||
-DBORINGSSL_LIB=$HOME/tmp/boringssl-libs .
|
cmake -DBORINGSSL_DIR=$BORINGSSL .
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue