summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua.mk b/src/lua.mk
index ef8f046..8ff1ed2 100644
--- a/src/lua.mk
+++ b/src/lua.mk
@@ -32,9 +32,11 @@ define $(PKG)_BUILD
RANLIB='$(TARGET)-ranlib' \
INSTALL='$(INSTALL)' \
install ranlib
+ $(SED) -i 's,^prefix=.*,prefix=$(PREFIX)/$(TARGET),' '$(1)/etc/lua.pc'
+ $(INSTALL) -m644 '$(1)/etc/lua.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/lua.pc'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \
- -llua
+ `'$(TARGET)-pkg-config' lua --cflags --libs`
endef