aboutsummaryrefslogtreecommitdiff
path: root/lang/lua53
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2016-02-19 22:55:18 +0000
committerIan Lepore <ian@FreeBSD.org>2016-02-19 22:55:18 +0000
commitfd3652ee1a7c47c72137dbaaf27969d22831f1f8 (patch)
tree05937a67dec170886bd21d1639420ad61050e0aa /lang/lua53
parentffaef68ad28a09ac88e19290421efc4db3be0138 (diff)
downloadports-fd3652ee1a7c47c72137dbaaf27969d22831f1f8.tar.gz
ports-fd3652ee1a7c47c72137dbaaf27969d22831f1f8.zip
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
Notes
Notes: svn path=/head/; revision=409214
Diffstat (limited to 'lang/lua53')
-rw-r--r--lang/lua53/files/patch-src__Makefile2
1 files changed, 1 insertions, 1 deletions
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)