Skip to content

Commit 230f6e7

Browse files
committed
Updated BoringSSL instructions in the README (fixes #3456)
1 parent c917ee6 commit 230f6e7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,14 @@ If you want to make use of BoringSSL instead of OpenSSL (e.g., because you want
9999
# Build
100100
mkdir -p build
101101
cd build
102-
cmake -DCMAKE_CXX_FLAGS="-lrt" ..
102+
cmake -DCMAKE_INSTALL_PREFIX=/opt/boringssl -DCMAKE_CXX_FLAGS="-lrt" ..
103103
make
104-
cd ..
105-
# Install
106-
sudo mkdir -p /opt/boringssl
107-
sudo cp -R include /opt/boringssl/
108-
sudo mkdir -p /opt/boringssl/lib
109-
sudo cp build/ssl/libssl.a /opt/boringssl/lib/
110-
sudo cp build/crypto/libcrypto.a /opt/boringssl/lib/
104+
sudo make install
111105

112106
Once the library is installed, you'll have to pass an additional `--enable-boringssl` flag to the configure script, as by default Janus will be built assuming OpenSSL will be used. By default, Janus expects BoringSSL to be installed in `/opt/boringssl` -- if it's installed in another location, pass the path to the configure script as such: `--enable-boringssl=/path/to/boringssl` If you were using OpenSSL and want to switch to BoringSSL, make sure you also do a `make clean` in the Janus folder before compiling with the new BoringSSL support. If you enabled BoringSSL support and also want Janus to detect and react to DTLS timeouts with faster retransmissions, then pass `--enable-dtls-settimeout` to the configure script too.
113107

108+
* *Note:* as explained in [this issue](https://github.com/meetecho/janus-gateway/issues/3456), building Janus with more recent versions of BoringSSL may require you to pass a `CCLD=c++` for any `make` command to build Janus itself.
109+
114110
For what concerns usrsctp, which is needed for Data Channels support, it is usually not available in repositories, so if you're interested in them (support is optional) you'll have to install it manually. It is a pretty easy and standard process:
115111

116112
git clone https://github.com/sctplab/usrsctp

0 commit comments

Comments
 (0)