summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-04 14:40:44 +0000
committerbde <bde@FreeBSD.org>2004-02-04 14:40:44 +0000
commitd769a0fd0ee09c2c21e224bfe61635447d4119fc (patch)
treec8d445277ef01478b55db37ae8564cc193f49b3c
parent742e931842d7ece0522c57d8505ffc124ba30d54 (diff)
downloadFreeBSD-src-d769a0fd0ee09c2c21e224bfe61635447d4119fc.zip
FreeBSD-src-d769a0fd0ee09c2c21e224bfe61635447d4119fc.tar.gz
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.
-rw-r--r--share/mk/sys.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index 529be59..d38fc0f 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=*}
OpenPOWER on IntegriCloud