aboutsummaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-20 10:47:57 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-11-08 13:37:24 +0100
commit38a0041bd5e46a53ec4d7356e2cc624aee071518 (patch)
tree55a2194bc81433880f7fa59d58c49fd9f2201e08 /config.mk
parentcbc96c96d193829fc882c5b4d83c2006a232cfe6 (diff)
downloadvis-38a0041bd5e46a53ec4d7356e2cc624aee071518.tar.gz
vis-38a0041bd5e46a53ec4d7356e2cc624aee071518.tar.xz
vis: try to support all lua versions >= 5.1
Make lpeg module table explicitly global, which should work with the different module loading semantics.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index e69c821..58cc573 100644
--- a/config.mk
+++ b/config.mk
@@ -61,7 +61,7 @@ endif
CFLAGS_LIBS = $(CFLAGS_LUA) $(CFLAGS_TERMKEY) $(CFLAGS_CURSES)
LDFLAGS_LIBS = $(LDFLAGS_LUA) $(LDFLAGS_TERMKEY) $(LDFLAGS_CURSES) $(LIBS)
-CFLAGS_VIS = $(CFLAGS_LIBS) -std=c99 -Os -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
+CFLAGS_VIS = $(CFLAGS_LIBS) -std=c99 -Os -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL
LDFLAGS_VIS = $(LDFLAGS_LIBS)
DEBUG_CFLAGS_VIS = ${CFLAGS_VIS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter