]> granicus.if.org Git - vim/commitdiff
patch 8.1.0418: MS-Windows: cannot separate Lua include and library dirs v8.1.0418
authorBram Moolenaar <Bram@vim.org>
Fri, 21 Sep 2018 11:44:09 +0000 (13:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 21 Sep 2018 11:44:09 +0000 (13:44 +0200)
Problem:    MS-Windows: cannot separate Lua include and library directories.
Solution:   Add LUA_LIBDIR and LUA_INCDIR. (Ken Takata, closes #3464)

src/Make_cyg_ming.mak
src/version.c

index b9ce390cf9185a8d8dbdc2979070c27529107c9a..7b9c7454e995d0ca792e0b659e5967df278f0798 100644 (file)
@@ -244,6 +244,8 @@ endif
 
 #      Lua interface:
 #        LUA=[Path to Lua directory] (Set inside Make_cyg.mak or Make_ming.mak)
+#        LUA_LIBDIR=[Path to Lua library directory] (default: $LUA/lib)
+#        LUA_INCDIR=[Path to Lua include directory] (default: $LUA/include)
 #        DYNAMIC_LUA=yes (to load the Lua DLL dynamically)
 #        LUA_VER=[Lua version, eg 51, 52] (default is 53)
 ifdef LUA
@@ -256,7 +258,8 @@ LUA_VER=53
 endif
 
 ifeq (no,$(DYNAMIC_LUA))
-LUA_LIB = -L$(LUA)/lib -llua
+LUA_LIBDIR = $(LUA)/lib
+LUA_LIB = -L$(LUA_LIBDIR) -llua
 endif
 
 endif
@@ -524,7 +527,8 @@ endif
 endif
 
 ifdef LUA
-CFLAGS += -I$(LUA)/include -I$(LUA) -DFEAT_LUA
+LUA_INCDIR = $(LUA)/include
+CFLAGS += -I$(LUA_INCDIR) -I$(LUA) -DFEAT_LUA
 ifeq (yes, $(DYNAMIC_LUA))
 CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
 endif
index 1a6b94d9d77a57c2156afb55776f8aa286e91c35..079657effbca7ff2d9c356bb6f5b49fcace510ad 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    418,
 /**/
     417,
 /**/