From 1b6b7edaf56f4a906948efcacefccd52ca62f300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Wed, 30 Sep 2020 23:13:07 +0100 Subject: [PATCH] support newer binutils Pass --verbose as well as --trace to the linker, as without -verbose, newer versions of gold (2.32 at least), will not output the component object files of archives, thus causing the lua script that processes the output to fail. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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