From d17387acd44e2238565b8b38d5740eae45804cf5 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Wed, 4 Feb 2004 14:40:44 +0000 Subject: [PATCH] Fixed breakage of POSIX support in rev.1.31. -pipe was added to CFLAGS in all cases, but POSIX requires a default of -O. Adding -pipe unconditionally still is still broken for non-gcc compilers in the non-POSIX case. --- share/mk/sys.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 529be5998dcd..d38fc0f278db 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -34,10 +34,11 @@ AFLAGS ?= .if defined(%POSIX) CC ?= c89 +CFLAGS ?= -O .else CC ?= cc -.endif CFLAGS ?= -O -pipe +.endif CXX ?= c++ CXXFLAGS ?= ${CFLAGS:N-std=*}