added additional flags for compiling on linux and osx, but enabled just posix, so it should cover most of distributions and variations (nw)

This commit is contained in:
Miodrag Milanovic 2013-05-10 10:34:43 +00:00
parent 47a7cb2fcc
commit cca73a4ec0

View File

@ -468,6 +468,15 @@ LUAOBJS = \
$(OBJ)/liblua.a: $(LUAOBJS)
LUA_FLAGS =
ifeq ($(TARGETOS),linux)
LUA_FLAGS += -DLUA_USE_POSIX
endif
ifeq ($(TARGETOS),macosx)
LUA_FLAGS += -DLUA_USE_POSIX
endif
$(LIBOBJ)/lua/%.o: $(LIBSRC)/lua/%.c | $(OSPREBUILD)
@echo Compiling $<...
$(CC) $(CDEFS) $(CCOMFLAGS) $(CONLYFLAGS) -DLUA_COMPAT_ALL -c $< -o $@
$(CC) $(CDEFS) $(CCOMFLAGS) $(CONLYFLAGS) -DLUA_COMPAT_ALL $(LUA_FLAGS) -c $< -o $@