LEVEL = ../..
TOOLNAME = lli
-USEDLIBS = bcreader vmcore analysis support target transforms
-TOOLLINKOPTS = -L$(LEVEL)/test/Libraries/Output -linstr32 -ldl
+USEDLIBS = bcreader vmcore analysis.a support.a target.a transforms.a
+
+# Have gcc tell the linker to export symbols from the program so that
+# dynamically loaded modules can be linked against them.
+#
+TOOLLINKOPTS = -ldl
include $(LEVEL)/Makefile.common