diff options
author | David Lamparter <equinox@diac24.net> | 2018-11-30 21:42:25 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-01-24 17:44:41 +0100 |
commit | 02a0df1f22c5cef8e4d3392d56e7db82da0d49cf (patch) | |
tree | a59f287e4ea30e471c3083700d606f0b2bf42e41 /yang | |
parent | Merge pull request #3642 from donaldsharp/sequence (diff) | |
download | frr-02a0df1f22c5cef8e4d3392d56e7db82da0d49cf.tar.xz frr-02a0df1f22c5cef8e4d3392d56e7db82da0d49cf.zip |
build, lib/yang: bake in extensions if possible
Starting with libyang 0.16.74, we can load internally embedded yang
extensions instead of going through the file system/dlopen. Detect
support for this at build time and use if available.
NB: the fallback mechanism will go away in a short while.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'yang')
-rw-r--r-- | yang/libyang_plugins/subdir.am | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yang/libyang_plugins/subdir.am b/yang/libyang_plugins/subdir.am index 956d22587..716478908 100644 --- a/yang/libyang_plugins/subdir.am +++ b/yang/libyang_plugins/subdir.am @@ -1,7 +1,12 @@ # # libyang user types # + +if LIBYANG_EXT_BUILTIN +lib_libfrr_la_SOURCES += yang/libyang_plugins/frr_user_types.c +else libyang_plugins_LTLIBRARIES += yang/libyang_plugins/frr_user_types.la +endif yang_libyang_plugins_frr_user_types_la_CFLAGS = $(WERROR) yang_libyang_plugins_frr_user_types_la_LDFLAGS = -avoid-version -module -shared -export-dynamic |