diff options
| author | Javier Garcia <javier.garcia@voltanet.io> | 2021-04-28 17:30:39 +0200 |
|---|---|---|
| committer | Javier Garcia <javier.garcia@voltanet.io> | 2021-04-28 18:53:20 +0200 |
| commit | 9af46face258221852648f4946baff49b039f7d8 (patch) | |
| tree | 9a596359717e6ab1356174a7870d8c0f1605decf | |
| parent | b47f1527b42e165f4dfa8873788d2e0e430c0c23 (diff) | |
doc: clang in openbsd is the default and update compiler.
Also
- update info about new packages needed as libcares.
- create proper links to libyang so ld can find the lib.
Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
| -rw-r--r-- | doc/developer/building-frr-for-openbsd6.rst | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/developer/building-frr-for-openbsd6.rst b/doc/developer/building-frr-for-openbsd6.rst index f307cacdfc..88446685e0 100644 --- a/doc/developer/building-frr-for-openbsd6.rst +++ b/doc/developer/building-frr-for-openbsd6.rst @@ -14,6 +14,7 @@ Add packages: :: + pkg_add clang libcares python3 pkg_add git autoconf-2.69p2 automake-1.15.1 libtool bison pkg_add gmake json-c py-test py-sphinx libexecinfo @@ -47,6 +48,19 @@ Download Source, configure and compile it (You may prefer different options on configure statement. These are just an example) +.. warning:: + + In openbsd the proper links for the libyang library may not have been created. + +:: + + ln -s /usr/lib/libyang.so.1.10.17 /usr/lib/libyang.so + +.. warning:: + + ``openbsd`` since version 6.2 has ``clang`` as the default compiler so to + build frr, clang must be used (the included gcc version is very old). + :: git clone https://github.com/frrouting/frr.git frr @@ -67,7 +81,8 @@ an example) --enable-logfile-mask=0640 \ --enable-fpm \ --with-pkg-git-version \ - --with-pkg-extra-version=-MyOwnFRRVersion + --with-pkg-extra-version=-MyOwnFRRVersion \ + CC=clang gmake gmake check doas gmake install |
