From dfc383e260a50e8cba03fc142d3db9a6da88e3cf Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Fri, 22 Jun 2001 05:11:26 +0000 Subject: [PATCH] Bugzilla bug #84251: turn NO_MDUPDATE into USE_MDUPDATE and turn off IRIX compiler warning 1209, which warns about do { } while (0) and PR_ASSERT(0). Modified files: IRIX.mk SunOS5.4_i86pc.mk SunOS5.mk --- security/coreconf/IRIX.mk | 9 ++++----- security/coreconf/SunOS5.4_i86pc.mk | 7 +++---- security/coreconf/SunOS5.mk | 7 +++---- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/security/coreconf/IRIX.mk b/security/coreconf/IRIX.mk index cc976e04cbda..f74da36b35a2 100644 --- a/security/coreconf/IRIX.mk +++ b/security/coreconf/IRIX.mk @@ -58,7 +58,7 @@ ifdef NS_USE_GCC else CC = cc CCC = CC - ODD_CFLAGS = -fullwarn -xansi + ODD_CFLAGS = -fullwarn -xansi -woff 1209 ifdef BUILD_OPT ifeq ($(USE_N32),1) OPTIMIZER = -O -OPT:Olimit=4000 @@ -91,10 +91,9 @@ RANLIB = /bin/true # NOTE: should always define _SGI_MP_SOURCE NOMD_OS_CFLAGS += $(ODD_CFLAGS) -D_SGI_MP_SOURCE -ifndef NO_MDUPDATE - OS_CFLAGS += $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) -else - OS_CFLAGS += $(NOMD_OS_CFLAGS) +OS_CFLAGS += $(NOMD_OS_CFLAGS) +ifdef USE_MDUPDATE + OS_CFLAGS += -MDupdate $(DEPENDENCIES) endif ifeq ($(USE_N32),1) diff --git a/security/coreconf/SunOS5.4_i86pc.mk b/security/coreconf/SunOS5.4_i86pc.mk index bed9893edf3f..35dfdb86ad32 100644 --- a/security/coreconf/SunOS5.4_i86pc.mk +++ b/security/coreconf/SunOS5.4_i86pc.mk @@ -43,10 +43,9 @@ ifdef NS_USE_GCC CCC = g++ CCC += -Wall -Wno-format ASFLAGS += -x assembler-with-cpp - ifdef NO_MDUPDATE - OS_CFLAGS += $(NOMD_OS_CFLAGS) - else - OS_CFLAGS += $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) + OS_CFLAGS += $(NOMD_OS_CFLAGS) + ifdef USE_MDUPDATE + OS_CFLAGS += -MDupdate $(DEPENDENCIES) endif else CC = cc diff --git a/security/coreconf/SunOS5.mk b/security/coreconf/SunOS5.mk index 37b65293fad5..37c98c7879c7 100644 --- a/security/coreconf/SunOS5.mk +++ b/security/coreconf/SunOS5.mk @@ -100,10 +100,9 @@ ifdef NS_USE_GCC CCC = g++ CCC += -Wall -Wno-format ASFLAGS += -x assembler-with-cpp - ifdef NO_MDUPDATE - OS_CFLAGS += $(NOMD_OS_CFLAGS) - else - OS_CFLAGS += $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) + OS_CFLAGS += $(NOMD_OS_CFLAGS) + ifdef USE_MDUPDATE + OS_CFLAGS += -MDupdate $(DEPENDENCIES) endif OS_CFLAGS += $(ARCHFLAG) else