Link libsimavr.so with needed libraries. That is the usual way and allows
authorga <ga@oldell.fish>
Mon, 25 Jan 2021 19:08:32 +0000 (19:08 +0000)
committerga <ga@oldell.fish>
Mon, 25 Jan 2021 19:32:34 +0000 (19:32 +0000)
it to be easily loaded by dlopen().

Makefile.common

index bf1724a..c7d4fc0 100644 (file)
@@ -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 $<} $@