Skip to content

Commit

Permalink
build: fixes for building binaries with luastatic 0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Aug 20, 2020
1 parent 162e68a commit 542376a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $(LANES_A): $(LANES_O)
$(AR) $@ $^
$(RANLIB) $@

bin/luacheck.lua.c: $(LUA_A) $(LFS_A) $(LANES_A)
luacheck.luastatic.c: $(LUA_A) $(LFS_A) $(LANES_A)
cp $(LUA_A) .
cp $(LFS_A) .
cp $(ARGPARSE_DIR)/src/argparse.lua .
Expand All @@ -81,12 +81,12 @@ bin/luacheck.lua.c: $(LUA_A) $(LFS_A) $(LANES_A)
cp -r ../src/luacheck .
CC="" luastatic bin/luacheck.lua luacheck/*.lua luacheck/*/*.lua luacheck/*/*/*.lua argparse.lua lanes.lua liblua.a lfs.a lanes.a

$(TARGET): bin/luacheck.lua.c
$(TARGET): luacheck.luastatic.c
$(CC) $(if $(LINUX),-static) -Os $< $(LUA_A) $(LFS_A) $(LANES_A) -I$(LUA_DIR)/src -lm $(if $(LINUX),-lpthread) -o $@
$(STRIP) $@

clean:
rm -f $(TARGET) bin/luacheck.lua.c
rm -f $(TARGET) luacheck.luastatic.c
rm -f $(LUA_O) $(LUA_A) $(LFS_O) $(LFS_A) $(LANES_O) $(LANES_A)
rm -f argparse.lua lanes.lua liblua.a lfs.a lanes.a
rm -rf luacheck
Expand Down

0 comments on commit 542376a

Please sign in to comment.