Bug 1250891, don't use gcc -ansi on BSD, r=glandium, DONTBUILD draft
authorJan Beich <jbeich@FreeBSD.org>
Thu, 03 Mar 2016 11:21:16 +0100
changeset 339843 ab7f6b160b79c480a3ed76ff98946d0cf5bc8ec9
parent 339842 48f566232dc3d987382a002032d0ff0e84122b8e
child 339844 e2f74233251317b20ce014ca21b5783a202fc98d
push id12805
push userjbeich@FreeBSD.org
push dateSun, 13 Mar 2016 10:57:20 +0000
reviewersglandium, DONTBUILD
bugs1250891
milestone48.0a1
Bug 1250891, don't use gcc -ansi on BSD, r=glandium, DONTBUILD MozReview-Commit-ID: JZW7x8B2BpY
security/nss/coreconf/FreeBSD.mk
security/nss/coreconf/NetBSD.mk
security/nss/coreconf/OpenBSD.mk
--- a/security/nss/coreconf/FreeBSD.mk
+++ b/security/nss/coreconf/FreeBSD.mk
@@ -16,17 +16,17 @@ CPU_ARCH		= x86
 endif
 ifeq ($(CPU_ARCH),pc98)
 CPU_ARCH		= x86
 endif
 ifeq ($(CPU_ARCH),amd64)
 CPU_ARCH		= x86_64
 endif
 
-OS_CFLAGS		= $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+OS_CFLAGS		= $(DSO_CFLAGS) -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
 
 DSO_CFLAGS		= -fPIC
 DSO_LDOPTS		= -shared -Wl,-soname -Wl,$(notdir $@)
 
 #
 # The default implementation strategy for FreeBSD is pthreads.
 #
 ifndef CLASSIC_NSPR
--- a/security/nss/coreconf/NetBSD.mk
+++ b/security/nss/coreconf/NetBSD.mk
@@ -21,17 +21,17 @@ OBJECT_FMT		:= $(shell if echo __ELF__ |
 endif
 
 ifeq ($(OBJECT_FMT),ELF)
 DLL_SUFFIX		= so
 else
 DLL_SUFFIX		= so.1.0
 endif
 
-OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
 
 OS_LIBS			= -lcompat
 
 ARCH			= netbsd
 
 DSO_CFLAGS		= -fPIC -DPIC
 DSO_LDOPTS		= -shared
 ifeq ($(OBJECT_FMT),ELF)
--- a/security/nss/coreconf/OpenBSD.mk
+++ b/security/nss/coreconf/OpenBSD.mk
@@ -21,17 +21,17 @@ ifndef CLASSIC_NSPR
 USE_PTHREADS		= 1
 DEFINES			+= -pthread
 OS_LIBS			+= -pthread
 DSO_LDOPTS		+= -pthread
 endif
 
 DLL_SUFFIX		= so.1.0
 
-OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DOPENBSD
+OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -pipe -DOPENBSD
 
 OS_LIBS			= 
 
 ARCH			= openbsd
 
 DSO_CFLAGS		= -fPIC -DPIC
 DSO_LDOPTS		= -shared -fPIC -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)