Browse Source

build: Dynamically link installed progs

With static linking, some symbols are duplicated when a dynamically loaded
extlib/extension plugin loads libriscv.so again. Notably, the default
clint/plic/ns16550 extensions will re-register themselves, causing
problems.
pull/1406/head
Jerry Zhao 3 years ago
parent
commit
2beafe8ac2
  1. 2
      Makefile.in

2
Makefile.in

@ -307,7 +307,7 @@ $$($(2)_install_prog_objs) : %.o : %.cc $$($(2)_gen_hdrs)
$(COMPILE) -c $$<
$$($(2)_install_prog_exes) : % : %.o $$($(2)_prog_libnames)
$(LINK) -o $$@ $$< $$($(2)_prog_libnames) $(LIBS)
$(LINK) -o $$@ $$< $$($(2)_prog_libarg) $(LIBS)
$(2)_deps += $$($(2)_install_prog_deps)
$(2)_junk += \

Loading…
Cancel
Save