summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-04-16 11:58:51 -0400
committerGitHub <noreply@github.com>2019-04-16 11:58:51 -0400
commitc74fea17c20c6b62504d9acc1825376c6aad5d36 (patch)
treea37368d92b3c775ee5e7f122ca2f99a4f6dbd342
parent0145af37e9383ee39c26be17467beadcc5cc2cb0 (diff)
parent45242058ecc742dc97a8039e0ff9316840458aee (diff)
Merge pull request #4143 from opensourcerouting/update-libyang-build-intr
doc: update libyang build instructions to enable compiler optimizations
-rw-r--r--doc/developer/building-libyang.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/developer/building-libyang.rst b/doc/developer/building-libyang.rst
index ea5f84d2ba..ed3e029908 100644
--- a/doc/developer/building-libyang.rst
+++ b/doc/developer/building-libyang.rst
@@ -46,7 +46,8 @@ The FRR project builds binary ``libyang`` packages, which we offer for download
git clone https://github.com/CESNET/libyang.git
cd libyang
mkdir build; cd build
- cmake -DENABLE_LYD_PRIV=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
+ cmake -DENABLE_LYD_PRIV=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -D CMAKE_BUILD_TYPE:String="Release" ..
make
sudo make install