From c9f28dbb45c8d1a3c72865272f4726a6c7bc442d Mon Sep 17 00:00:00 2001 From: ga Date: Mon, 25 Jan 2021 19:08:32 +0000 Subject: [PATCH] Link libsimavr.so with needed libraries. That is the usual way and allows it to be easily loaded by dlopen(). --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index bf1724a..c7d4fc0 100644 --- a/Makefile.common +++ b/Makefile.common @@ -215,7 +215,7 @@ endif -Wl,--whole-archive,-soname,${basename ${notdir $@}}.1 \ ${filter %.o %.a,$^} \ -Wl,--no-whole-archive \ - ${filter-out -l%, $(LDFLAGS)} ${EXTRA_LDFLAGS} + ${filter-out -lsimavr, $(LDFLAGS)} ${EXTRA_LDFLAGS} ${OBJ}/%.so: ${OBJ}/%.so.1 ln -sf ${notdir $<} $@ -- 2.39.5