commit 0bb1334c14466593d539da9fd6782ed09d7f511d from: Sergey Bronnikov date: Tue Aug 06 18:56:36 2024 UTC patches: fix PUC Rio Lua build The commit 366c85564874 ("lua.c loads 'readline' dynamically") [1] breaks a build. The proposed patches fixes that. 1. https://github.com/lua/lua/commit/366c85564874d560b3608349f752e9e490f9002d commit - 4b22351c31db179a117ab4658745bc16ef4ec73f commit + 0bb1334c14466593d539da9fd6782ed09d7f511d blob - 270957d70b93824ec7ec27efa6d932257c7d1091 blob + 1d501d9b592294a5c0cbfd02d703712fcd39e6ef --- patches/puc-rio-lua.patch +++ patches/puc-rio-lua.patch @@ -1,8 +1,8 @@ diff --git a/makefile b/makefile -index ee56c67..d43a965 100644 +index b37fdb28..accb2822 100644 --- a/makefile +++ b/makefile -@@ -41,7 +41,7 @@ CWARNSC= -Wdeclaration-after-statement \ +@@ -40,7 +40,7 @@ CWARNSC= -Wdeclaration-after-statement \ -Wold-style-definition \ @@ -11,12 +11,12 @@ index ee56c67..d43a965 100644 # Some useful compiler options for internal tests: # -DLUAI_ASSERT turns on all assertions inside Lua. -@@ -73,11 +73,11 @@ LOCAL = $(TESTS) $(CWARNS) +@@ -72,11 +72,11 @@ LOCAL = $(TESTS) $(CWARNS) # enable Linux goodies - MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE + MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX MYLDFLAGS= $(LOCAL) -Wl,-E --MYLIBS= -ldl -lreadline -+MYLIBS= -ldl -lreadline $(LDFLAGS) +-MYLIBS= -ldl ++MYLIBS= -ldl $(LDFLAGS) -CC= gcc