residualvm / residualvm-tools

Tools for ResidualVM
GNU General Public License v2.0
19 stars 10 forks source link

Problem compiling with multiple threads #33

Closed clone2727 closed 10 years ago

clone2727 commented 10 years ago

If I run using "make -j5" threads, I get this error:

make: *** No rule to make target `tools/luac/../lua/liblua.a', needed by `tools/luac/luac'.  Stop.

Compiling with just "make" lets it build fine. I'm guessing there's a missing dependency of a target somewhere.

Botje commented 10 years ago

The following patch fixes it for me. Can you try and see if it works for you too?

diff --git i/tools/luac/module.mk w/tools/luac/module.mk
index 5c08e5a..02d38e8 100644
--- i/tools/luac/module.mk
+++ w/tools/luac/module.mk
@@ -6,8 +6,9 @@ TOOL_OBJS := \
        opcode.o \
        opt.o \
        print.o \
-       rebase.o \
-       ../lua/liblua.a
+       rebase.o
+
+TOOL_LDFLAGS := tools/lua/liblua.a

 TOOL := luac
 TOOL_DEPS := tools/lua
clone2727 commented 10 years ago

Yep, works for me.