diff --git a/Makefile b/Makefile index f7f2fb83..7ccdd7ce 100644 --- a/Makefile +++ b/Makefile @@ -224,7 +224,7 @@ release/include/terra/%.h: $(LUAJIT_INCLUDE)/%.h $(LUAJIT_LIB) build/llvm_objects/llvm_list: $(addprefix build/, $(LIBOBJS) $(EXEOBJS)) mkdir -p build/llvm_objects/luajit - $(CXX) -o /dev/null $(addprefix build/, $(LIBOBJS) $(EXEOBJS)) $(LLVM_LIBRARY_FLAGS) $(SUPPORT_LIBRARY_FLAGS) $(LFLAGS) -Wl,-t 2>&1 | egrep "lib(LLVM|clang)" > build/llvm_objects/llvm_list + $(CXX) -o /dev/null $(addprefix build/, $(LIBOBJS) $(EXEOBJS)) $(LLVM_LIBRARY_FLAGS) $(SUPPORT_LIBRARY_FLAGS) $(LFLAGS) -Wl,-t -Wl,--verbose 2>&1 | egrep "^\(.*lib(LLVM|clang)" > build/llvm_objects/llvm_list # extract needed LLVM objects based on a dummy linker invocation < build/llvm_objects/llvm_list $(LUAJIT) src/unpacklibraries.lua build/llvm_objects # include all luajit objects, since the entire lua interface is used in terra