From 636aad94735aff8aeec911bca4c32f4e5e48d77c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 9 Apr 2021 19:56:05 +0200 Subject: [PATCH] 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 --- pathd/subdir.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pathd/subdir.am b/pathd/subdir.am index b4501214bf..fdc08e9e97 100644 --- a/pathd/subdir.am +++ b/pathd/subdir.am @@ -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