]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: don't link pathd/path_main.c twice
authorDavid Lamparter <equinox@diac24.net>
Fri, 9 Apr 2021 17:56:05 +0000 (19:56 +0200)
committerDavid Lamparter <equinox@diac24.net>
Fri, 9 Apr 2021 17:56:05 +0000 (19:56 +0200)
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>
pathd/subdir.am

index b4501214bfe8ec4905b3d5876e41510987137b89..fdc08e9e97fab7246808f24b8a39fe44f80e311a 100644 (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