summaryrefslogtreecommitdiffstats
path: root/src/luabind.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/luabind.mk')
-rw-r--r--src/luabind.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luabind.mk b/src/luabind.mk
index 2a1608a..e08fb81 100644
--- a/src/luabind.mk
+++ b/src/luabind.mk
@@ -23,6 +23,12 @@ define $(PKG)_BUILD
'$(1)'
$(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1).build' -j 1 VERBOSE=1
$(MAKE) -C '$(1).build' -j 1 install VERBOSE=1
+
+ # all programs using luabind should define LUA_COMPAT_ALL
+ '$(TARGET)-g++' \
+ -W -Wall -DLUA_COMPAT_ALL \
+ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-luabind.exe' \
+ -llua -lluabind
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =