4 PLUGIN_FLAGS := -C link-args=-Wl,-undefined,dynamic_lookup
7 ifeq ($(findstring stage1,$(RUST_BUILD_STAGE)),stage1)
12 # Windows doesn't correctly handle include statements with escaping paths,
13 # so this test will not get run on Windows.
17 all: $(call NATIVE_STATICLIB,llvm-function-pass) $(call NATIVE_STATICLIB,llvm-module-pass)
18 $(RUSTC) plugin.rs -C prefer-dynamic $(PLUGIN_FLAGS)
21 $(TMPDIR)/libllvm-function-pass.o:
22 $(CXX) $(CFLAGS) $(LLVM_CXXFLAGS) -c llvm-function-pass.so.cc -o $(TMPDIR)/libllvm-function-pass.o
24 $(TMPDIR)/libllvm-module-pass.o:
25 $(CXX) $(CFLAGS) $(LLVM_CXXFLAGS) -c llvm-module-pass.so.cc -o $(TMPDIR)/libllvm-module-pass.o