File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ CC ?= gcc
14
14
PLAT ?= windows
15
15
LIBNAME = webview
16
16
17
+ ifdef LUA_LIBDIR
18
+ LUA_LIBDIR_OPT =-L$(LUA_LIBDIR )
19
+ else
20
+ LUA_LIBDIR_OPT =
21
+ endif
22
+
17
23
# LUA_APP = $(LUA_BINDIR)/$(LUA)
18
24
LUA_APP = $(LUA )
19
25
LUA_VERSION = $(shell $(LUA_APP ) -e "print(string.sub(_VERSION, 5) )")
@@ -40,7 +46,7 @@ CFLAGS_windows = -Wall \
40
46
LIBFLAG_windows = -O \
41
47
-shared \
42
48
-Wl,-s \
43
- -L $( LUA_LIBDIR ) -l$(LUA_LIBNAME ) \
49
+ $( LUA_LIBDIR_OPT ) -l$(LUA_LIBNAME ) \
44
50
-static-libgcc \
45
51
-lole32 -lcomctl32 -loleaut32 -luuid -lgdi32
46
52
@@ -58,7 +64,7 @@ CFLAGS_linux = -pedantic \
58
64
59
65
LIBFLAG_linux = -static-libgcc \
60
66
-Wl,-s \
61
- -L $( LUA_LIBDIR ) \
67
+ $( LUA_LIBDIR_OPT ) \
62
68
$(shell pkg-config --libs gtk+-3.0 webkit2gtk-4.0)
63
69
64
70
TARGET_linux = $(LIBNAME ) .so
You can’t perform that action at this time.
0 commit comments