uwsgi/uwsgi_fix_lua.patch

32 lines
982 B
Diff
Raw Normal View History

diff --git a/plugins/lua/uwsgiplugin.py b/plugins/lua/uwsgiplugin.py
2013-10-03 05:23:06 +00:00
index 8aaa95b..d0e3cd0 100644
--- a/plugins/lua/uwsgiplugin.py
+++ b/plugins/lua/uwsgiplugin.py
2013-10-03 05:23:06 +00:00
@@ -3,7 +3,7 @@ import os,sys
LUAINC = os.environ.get('UWSGICONFIG_LUAINC')
LUALIB = os.environ.get('UWSGICONFIG_LUALIB')
LUALIBPATH = os.environ.get('UWSGICONFIG_LUALIBPATH')
-LUAPC = os.environ.get('UWSGICONFIG_LUAPC', 'lua5.1')
+LUAPC = os.environ.get('UWSGICONFIG_LUAPC', 'lua')
2013-10-03 05:23:06 +00:00
# we LUAINC/LUALIB/LUALIBPATH override the LUAPC for backwards compat
if LUAINC:
@@ -12,7 +12,7 @@ else:
try:
CFLAGS = os.popen('pkg-config --cflags %s' % LUAPC).read().rstrip().split()
except:
- CFLAGS = ['-I/usr/include/lua5.1']
+ CFLAGS = ['-I/usr/include/lua']
2013-10-03 05:23:06 +00:00
if LUALIB:
LIBS = ['-l%s' % LUALIB]
@@ -20,7 +20,7 @@ else:
try:
LIBS = os.popen('pkg-config --libs %s' % LUAPC).read().rstrip().split()
except:
- LIBS = ['-llua5.1']
+ LIBS = ['-llua']
2013-10-03 05:23:06 +00:00
if LUALIBPATH:
LDFLAGS = ['-L%s' % LUALIBPATH]