aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2016-02-20 06:55:18 +0800
committerian <ian@FreeBSD.org>2016-02-20 06:55:18 +0800
commit0d1597e3a5eeff680f64eb0761bd5067239911ce (patch)
tree05937a67dec170886bd21d1639420ad61050e0aa
parentb0c51abf03129e6963838051a42c3a952dcf32dd (diff)
downloadfreebsd-ports-gnome-0d1597e3a5eeff680f64eb0761bd5067239911ce.tar.gz
freebsd-ports-gnome-0d1597e3a5eeff680f64eb0761bd5067239911ce.tar.zst
freebsd-ports-gnome-0d1597e3a5eeff680f64eb0761bd5067239911ce.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
-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)