mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-21 09:23:10 +08:00
Added -DLUA_USE_DLOPEN, and added mongoose.o: mod_lua.c
This commit is contained in:
parent
3054a7f09e
commit
421c16b2bb
6
Makefile
6
Makefile
@ -36,6 +36,10 @@ LUA_SOURCES = $(LUA)/lapi.c $(LUA)/lcode.c $(LUA)/lctype.c \
|
||||
$(LUA)/loadlib.c $(LUA)/linit.c
|
||||
LUA_WINOBJS = $(LUA_SOURCES:%.c=%.obj)
|
||||
|
||||
ifneq ($(OS), Windows_NT)
|
||||
LUA_FLAGS += -DLUA_USE_DLOPEN
|
||||
endif
|
||||
|
||||
# Stock windows binary builds with Lua and YASSL library.
|
||||
YASSL = ../cyassl-2.4.6
|
||||
YASSL_FLAGS = -I $(YASSL) -I $(YASSL)/cyassl \
|
||||
@ -98,6 +102,8 @@ lua.lib: $(LUA_WINOBJS)
|
||||
linux_lua: $(ALL_OBJECTS)
|
||||
$(CC) $(ALL_OBJECTS) -o $(PROG) -ldl
|
||||
|
||||
mongoose.o: mod_lua.c
|
||||
|
||||
# Make sure that the compiler flags come last in the compilation string.
|
||||
# If not so, this can break some on some Linux distros which use
|
||||
# "-Wl,--as-needed" turned on by default in cc command.
|
||||
|
Loading…
Reference in New Issue
Block a user