Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/modules/lua/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ ifeq ($(BUILD_LUA),module)
else
STATIC_LUA_FLAG=-DSTATIC_LUA=1
LUA_TARGET=libvalkeylua.a
# Strip LTO flags for the static build. When archiving into a .a,
# LTO bitcode objects cause linker failures if the system linker
# cannot read them. Use 'override' because OPTIMIZATION is passed
# as a command-line variable from the parent Makefile.
override OPTIMIZATION:=$(subst -flto,,$(subst -ffat-lto-objects,,$(subst -flto=auto,,$(OPTIMIZATION))))
endif

ifeq ($(uname_S),Darwin)
Expand Down
Loading