You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the patch. My OS (Arch Linux) has no "lua5.1" package though, so I've edited the makefile to use "lua" and fall back on "lua5.1" if "lua" is not found.
Oh ok.. I suppose ununtu is doing it wrong then :D And also it won't work anymore as soon as lua5.2 comes along. Maybe there's a generic way to handle this.
On another note though: I also had to add the line
diff --git a/Makefile b/Makefile
index 05952a2..2c51bc9 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,14 @@ VERSION := 0.02
DISTDIR := lua-subprocess-$(VERSION)
DISTFILES := Makefile $(SOURCES) liolib-copy.h subprocess.txt subprocess.html
-INSTALL_CMOD := $(shell pkg-config --variable=INSTALL_CMOD lua)
+INSTALL_CMOD := $(shell pkg-config --variable=INSTALL_CMOD lua5.1)
ifeq ($(INSTALL_CMOD),)
$(error Lua package not found)
endif
CFLAGS ?= -Wall -Wextra -pedantic -O2
-LUA_CFLAGS := $(shell pkg-config --cflags --libs lua)
+LUA_CFLAGS := $(shell pkg-config --cflags --libs lua5.1)
.PHONY: all
all: subprocess.so subprocess.html
@@ -31,6 +31,7 @@ clean:
.PHONY: install
install: subprocess.so
.PHONY: uninstall
The text was updated successfully, but these errors were encountered: