diff options
Diffstat (limited to 'src/luac')
-rw-r--r-- | src/luac/Makefile | 2 | ||||
-rw-r--r-- | src/luac/luac.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/luac/Makefile b/src/luac/Makefile index 7a620826..9e772b41 100644 --- a/src/luac/Makefile +++ b/src/luac/Makefile @@ -13,7 +13,7 @@ T= $(BIN)/luac all: $T $T: $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a - $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) + $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) $(DLLIB) # print.c needs opcode names from lopcodes.c lopcodes.o: ../lopcodes.c ../lopcodes.h diff --git a/src/luac/luac.c b/src/luac/luac.c index 9ea23342..1aff0bd9 100644 --- a/src/luac/luac.c +++ b/src/luac/luac.c @@ -1,5 +1,5 @@ /* -** $Id: luac.c,v 1.44 2003/04/07 20:34:20 lhf Exp $ +** $Id: luac.c,v 1.44a 2003/04/07 20:34:20 lhf Exp $ ** Lua compiler (saves bytecodes to files; also list bytecodes) ** See Copyright Notice in lua.h */ @@ -182,7 +182,9 @@ int main(int argc, char* argv[]) FILE* D=fopen(output,"wb"); if (D==NULL) cannot(output,"open","out"); if (stripping) strip(L,f); + lua_lock(L); luaU_dump(L,f,writer,D); + lua_unlock(L); if (ferror(D)) cannot(output,"write","out"); fclose(D); } |