Skip to content

Commit 1f0a207

Browse files
committed
pd-lua external/Makefile changes.
pd-lua now uses the latest pd-lib-builder and includes lua as a submodule, so building it becomes a lot easier. Most notably, Lua 5.4 is linked statically from lua/onelua.c, so Lua isn't needed as a build or runtime dependency any more and the resulting external will use exactly the same Lua version across different platforms.
1 parent 11b78b5 commit 1f0a207

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

externals/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,11 +1484,8 @@ pddp_clean:
14841484
#------------------------------------------------------------------------------#
14851485
# PDLUA
14861486

1487-
LUA_CFLAGS = $(shell (pkg-config --cflags lua5.4 || pkg-config --cflags lua5.3 || pkg-config --cflags lua5.2 || pkg-config --cflags lua) 2> /dev/null)
1488-
LUA_LIBS = $(shell (pkg-config --libs lua5.4 || pkg-config --libs lua5.3 || pkg-config --libs lua5.2 || pkg-config --libs lua) 2> /dev/null)
1489-
14901487
pdlua:
1491-
make -C $(externals_src)/pd-lua LUA_CFLAGS="$(LUA_CFLAGS)" LUA_LIBS="$(LUA_LIBS)" PD_PATH="$(pd_src)" PD_LIB="$(pd_src)/src" CFLAGS="$(CFLAGS)"
1488+
make -C $(externals_src)/pd-lua PDINCLUDEDIR="$(pd_src)/src" PDBINDIR="$(pd_src)/src"
14921489

14931490
pdlua_install:
14941491
make -C $(externals_src)/pd-lua DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install

0 commit comments

Comments
 (0)