From 0d1597e3a5eeff680f64eb0761bd5067239911ce Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 19 Feb 2016 22:55:18 +0000 Subject: Fix CFLAGS handling in lua53 patches. The ?= assignment of CFLAGS (not present in earlier lua5x patches) results in MYCFLAGS, passed from the port makefile, never getting assigned to CFLAGS during the lua build. The result is a copy of lua that has none of the posix support functions in it. CFLAGS set in the outer environment by the user or make.conf get passed in via the MYCFLAGS mechanism, so remove the -O2 and let the outer environment control optimization level. Approved by: mat(mentor) Differential Revision: https://reviews.freebsd.org/D5256 --- lang/lua53/files/patch-src__Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/lua53') diff --git a/lang/lua53/files/patch-src__Makefile b/lang/lua53/files/patch-src__Makefile index 407ab24c7ece..8021c34a9162 100644 --- a/lang/lua53/files/patch-src__Makefile +++ b/lang/lua53/files/patch-src__Makefile @@ -7,7 +7,7 @@ -CC= gcc -std=gnu99 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) +CC?= gcc -std=gnu99 -+CFLAGS?= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) ++CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) -- cgit