Commit 9287a691 authored by Jan Kiszka's avatar Jan Kiszka

libs: Add linking dependencies to libraries

This ensures that no optimization will drop dependencies of our shared
objects, preventing to load them via dlopen without explicitly loading
those dropped dependencies first. See also
https://xenomai.org/pipermail/xenomai/2020-February/042449.html

As trank now explicitly depends on alchemy, reorder the build to ensure
that the latter is available before the former is built (analogy is
only moved for consistency reasons).
Reported-by: default avatarAntoine Hoarau <antoine@flr.io>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 147b9b64
SUBDIRS = boilerplate
if XENO_COBALT
SUBDIRS += \
cobalt \
analogy \
trank
SUBDIRS += cobalt
else
SUBDIRS += mercury
endif
......@@ -16,6 +13,12 @@ SUBDIRS += \
vxworks \
psos
if XENO_COBALT
SUBDIRS += \
analogy \
trank
endif
DIST_SUBDIRS = \
alchemy \
analogy \
......
......@@ -2,6 +2,10 @@ lib_LTLIBRARIES = libalchemy.la
libalchemy_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
libalchemy_la_LIBADD = \
@XENO_CORE_LDADD@ \
$(top_builddir)/lib/copperplate/libcopperplate.la
libalchemy_la_SOURCES = \
init.c \
internal.c \
......
......@@ -2,6 +2,8 @@ lib_LTLIBRARIES = libanalogy.la
libanalogy_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 1:0:0 -lm
libanalogy_la_LIBADD = @XENO_CORE_LDADD@
libanalogy_la_SOURCES = \
async.c \
descriptor.c \
......
......@@ -2,6 +2,10 @@ lib_LTLIBRARIES = libpsos.la
libpsos_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
libpsos_la_LIBADD = \
@XENO_CORE_LDADD@ \
$(top_builddir)/lib/copperplate/libcopperplate.la
libpsos_la_SOURCES = \
init.c \
internal.h \
......
......@@ -3,6 +3,10 @@ lib_LTLIBRARIES = libtrank.la
libtrank_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
libtrank_la_LIBADD = \
@XENO_CORE_LDADD@ \
$(top_builddir)/lib/alchemy/libalchemy.la
libtrank_la_SOURCES = \
init.c \
internal.c \
......
......@@ -2,6 +2,10 @@ lib_LTLIBRARIES = libvxworks.la
libvxworks_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
libvxworks_la_LIBADD = \
@XENO_CORE_LDADD@ \
$(top_builddir)/lib/copperplate/libcopperplate.la
libvxworks_la_SOURCES = \
init.c \
errnoLib.c \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment