build: don't link pathd/path_main.c twice

Can't have things duplicate in libpath.a and pathd directly, they'll
crash into eath other on linking.  No idea why this doesn't error out in
our CI builds, but it definitely breaks LTO builds.

Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
David Lamparter 2021-04-09 19:56:05 +02:00
parent b17f302b20
commit 636aad9473

View File

@ -22,7 +22,6 @@ pathd_libpath_a_SOURCES = \
pathd/path_cli.c \
pathd/path_debug.c \
pathd/path_errors.c \
pathd/path_main.c \
pathd/path_nb.c \
pathd/path_nb_config.c \
pathd/path_nb_state.c \
@ -50,7 +49,9 @@ noinst_HEADERS += \
pathd/pathd.h \
# end
pathd_pathd_SOURCES = pathd/path_main.c
pathd_pathd_SOURCES = \
pathd/path_main.c \
# end
nodist_pathd_pathd_SOURCES = \
yang/frr-pathd.yang.c \
# end