Skip to content

Commit 0959311

Browse files
committed
Override the original command-line variable
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent 3210db6 commit 0959311

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/modules/lua/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ else
1111
LUA_TARGET=libvalkeylua.a
1212
# Strip LTO flags for the static build. When archiving into a .a,
1313
# LTO bitcode objects cause linker failures if the system linker
14-
# cannot read them.
15-
OPTIMIZATION:=$(subst -flto,,$(subst -ffat-lto-objects,,$(subst -flto=auto,,$(OPTIMIZATION))))
14+
# cannot read them. Use 'override' because OPTIMIZATION is passed
15+
# as a command-line variable from the parent Makefile.
16+
override OPTIMIZATION:=$(subst -flto,,$(subst -ffat-lto-objects,,$(subst -flto=auto,,$(OPTIMIZATION))))
1617
endif
1718

1819
ifeq ($(uname_S),Darwin)

0 commit comments

Comments
 (0)