Skip to content

Commit

Permalink
Update build instructions in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
litespeedtech authored Feb 1, 2019
1 parent b1af35d commit 199c01a
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,34 +61,15 @@ git checkout chromium-stable
cmake . && make
```

If you want to turn on optimizations, do

```
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:

Remember where BoringSSL sources are:
```
BORINGSSL_SOURCE=$PWD
cd /usr/local/lib
sudo cp $BORINGSSL_SOURCE/ssl/libssl.a .
sudo cp $BORINGSSL_SOURCE/crypto/libcrypto.a .
BORINGSSL=$PWD
```

If you do not want to install the library (or do not have root), you
can do this instead:
If you want to turn on optimizations, do

```
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
cmake -DCMAKE_BUILD_TYPE=Release . && make
```

Building LSQUIC Client Library
Expand All @@ -108,8 +89,8 @@ cd lsquic-client


```
cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include \
-DBORINGSSL_LIB=$HOME/tmp/boringssl-libs .
# $BORINGSSL is the top-level BoringSSL directory from the previous step
cmake -DBORINGSSL_DIR=$BORINGSSL .
make
```

Expand Down

0 comments on commit 199c01a

Please sign in to comment.