From 3808e3873ffa35c9fe7a207163e4abd0670c248e Mon Sep 17 00:00:00 2001 From: AnHeuermann Date: Wed, 8 Dec 2021 10:53:12 +0100 Subject: [PATCH] Use CC and CFLAGS in Lua Makefile --- Lua/lua-5.3.4/src/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Lua/lua-5.3.4/src/Makefile b/Lua/lua-5.3.4/src/Makefile index 369baa1d..790d49fa 100644 --- a/Lua/lua-5.3.4/src/Makefile +++ b/Lua/lua-5.3.4/src/Makefile @@ -6,10 +6,11 @@ # Your platform. See PLATS for possible values. PLAT= none -CC= gcc -std=gnu99 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) -LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) -LIBS= -lm $(SYSLIBS) $(MYLIBS) +CC ?= gcc -std=gnu99 +CFLAGS ?= -O2 -Wall -Wextra +CFLAGS += -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) +LDFLAGS = $(SYSLDFLAGS) $(MYLDFLAGS) +LIBS = -lm $(SYSLIBS) $(MYLIBS) AR= ar rcu RANLIB= ranlib