Skip to content

Commit 18b8500

Browse files
committed
fix build issues and use BUILD_LUA option
Signed-off-by: Ricardo Dias <[email protected]>
1 parent 884fa12 commit 18b8500

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deps/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ hdr_histogram: .make-prerequisites
7676

7777
fpconv: .make-prerequisites
7878
@printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
79-
cd fpconv && $(MAKE) CFLAGS="-fPIC"
79+
cd fpconv && $(MAKE) CFLAGS="-fPIC $(CFLAGS)"
8080

8181
.PHONY: fpconv
8282

@@ -90,7 +90,7 @@ LUA_LDFLAGS+= $(LDFLAGS)
9090
ifeq ($(LUA_DEBUG),yes)
9191
LUA_CFLAGS+= -O0 -g -DLUA_USE_APICHECK
9292
else
93-
LUA_CFLAGS+= -O2
93+
LUA_CFLAGS+= -O2
9494
endif
9595
ifeq ($(LUA_COVERAGE),yes)
9696
LUA_CFLAGS += -fprofile-arcs -ftest-coverage

src/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ LUA_MODULE=
258258
LUA_MODULE_INSTALL=
259259
LUA_MODULE_NAME:=modules/lua/libluaengine.so
260260

261-
ifneq ($(WITHOUT_LUA),yes)
261+
ifneq ($(BUILD_LUA),no)
262262
LUA_MODULE=$(LUA_MODULE_NAME)
263263
endif
264264

@@ -490,7 +490,7 @@ persist-settings: distclean
490490
echo BUILD_TLS=$(BUILD_TLS) >> .make-settings
491491
echo BUILD_RDMA=$(BUILD_RDMA) >> .make-settings
492492
echo USE_SYSTEMD=$(USE_SYSTEMD) >> .make-settings
493-
echo WITHOUT_LUA=$(WITHOUT_LUA) >> .make-settings
493+
echo BUILD_LUA=$(BUILD_LUA) >> .make-settings
494494
echo CFLAGS=$(CFLAGS) >> .make-settings
495495
echo LDFLAGS=$(LDFLAGS) >> .make-settings
496496
echo SERVER_CFLAGS=$(SERVER_CFLAGS) >> .make-settings

0 commit comments

Comments
 (0)