summaryrefslogtreecommitdiff
path: root/user/highlight/lua.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/highlight/lua.patch')
-rw-r--r--user/highlight/lua.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/user/highlight/lua.patch b/user/highlight/lua.patch
new file mode 100644
index 000000000..b7c71781d
--- /dev/null
+++ b/user/highlight/lua.patch
@@ -0,0 +1,27 @@
+--- a/src/makefile
++++ b/src/makefile
+@@ -13,7 +13,8 @@
+ # See src/gui-qt/highlight.pro for the Qt GUI compilation options
+
+ #CXX=clang++
+-CXX=g++
++#CXX=g++
++CXX ?= c++
+
+ # was: qmake-qt5
+ QMAKE=qmake
+@@ -38,11 +39,11 @@
+
+ # If Lua 5.2 is not default on your system yet you have to
+ # use lua5.1 in the pkg-config calls
+-
+-LUA_CFLAGS=$(shell pkg-config --cflags lua)
++LUAPC ?= lua5.3
++LUA_CFLAGS=$(shell pkg-config --cflags $(LUAPC))
+
+ # default lua lib
+-LUA_LIBS=$(shell pkg-config --libs lua)
++LUA_LIBS=$(shell pkg-config --libs $(LUAPC))
+
+ # luajit lib
+ # LUA_LIBS=$(shell pkg-config --libs luajit)