forked from Mirror/frr
build: link libelf to clippy only
It's not needed elsewhere & generates a bogus dependency. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
0198bd1fbb
commit
53c6125b9f
|
@ -820,6 +820,8 @@ AS_IF([test "$host" = "$build"], [
|
|||
AC_CHECK_HEADER([gelf.h], [], [
|
||||
AC_MSG_ERROR([libelf headers are required for building clippy. (Host only when cross-compiling.)])
|
||||
])
|
||||
|
||||
LIBS_save="$LIBS"
|
||||
AC_CHECK_LIB([elf], [elf_memory], [], [
|
||||
AC_MSG_ERROR([libelf is required for building clippy. (Host only when cross-compiling.)])
|
||||
])
|
||||
|
@ -830,6 +832,8 @@ AS_IF([test "$host" = "$build"], [
|
|||
AC_CHECK_LIB([elf], [gelf_getnote], [
|
||||
AC_DEFINE([HAVE_GELF_GETNOTE], [1], [Have gelf_getnote()])
|
||||
])
|
||||
LIBS="$LIBS_save"
|
||||
unset LIBS_save
|
||||
|
||||
FRR_PYTHON_DEV
|
||||
], [
|
||||
|
|
Loading…
Reference in a new issue