From: ga Date: Mon, 25 Jan 2021 19:08:32 +0000 (+0000) Subject: Link libsimavr.so with needed libraries. That is the usual way and allows X-Git-Tag: v1.7~3^2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=c9f28dbb45c8d1a3c72865272f4726a6c7bc442d;p=sx%2Fsimavr.git Link libsimavr.so with needed libraries. That is the usual way and allows it to be easily loaded by dlopen(). --- 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 $<} $@