From 85f3869ee0ddbb7aba305faa45580d6c0f9f1c01 Mon Sep 17 00:00:00 2001 From: Corey Minyard Date: Fri, 31 May 2024 08:18:44 -0500 Subject: [PATCH] Fix relinking issue 6a8c70eed4c66df ("Fix a parallel build issue in the main library") pulled out a cheap hack I had done and did it the right way. Unfortunately, it did not handle relinking. Add the proper dependency so that the main libraries are installed before relinking the modules. Signed-off-by: Corey Minyard --- lib/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Makefile.am b/lib/Makefile.am index ef46602a..3ded6388 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -359,6 +359,14 @@ libgensio_afskmdm_la_LIBADD = $(DYNAMIC_LIBS) -lm # doing the plugins, since the plugins link against them. $(gensiolibexec_LTLIBRARIES): $(lib_LTLIBRARIES) +# Same thing as above, but for relinking on installation. We have to +# have the main libraries installed before relinking. The rule as +# specified below add prerequisites to the targets instead of creating +# a rule. +install-gensiolibexecLTLIBRARIES gensiolibexec-dummyprereq: install-libLTLIBRARIES + +.PHONY gensiolibexec-dummyprereq: + EXTRA_DIST = README.rst libgensioosh.pc.in libgensio.pc.in libgensiomdns.pc.in DISTCLEANFILES = builtin_gensios.h