From b4146d993391f038122e718a27440f7b5cc9b208 Mon Sep 17 00:00:00 2001 From: "ian.mcgreer%sun.com" Date: Mon, 15 Apr 2002 21:04:00 +0000 Subject: [PATCH] bug 63815, AIX compiler fails to build ckhelper.c in debug mode --- security/nss/lib/dev/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/security/nss/lib/dev/Makefile b/security/nss/lib/dev/Makefile index 9eee2533f170..a9e20d7785e8 100644 --- a/security/nss/lib/dev/Makefile +++ b/security/nss/lib/dev/Makefile @@ -30,11 +30,24 @@ # may use your version of this file under either the MPL or the # GPL. # -MAKEFILE_CVS_ID = "@(#) $RCSfile: Makefile,v $ $Revision: 1.3 $ $Date: 2001/10/11 17:41:41 $ $Name: $" +MAKEFILE_CVS_ID = "@(#) $RCSfile: Makefile,v $ $Revision: 1.4 $ $Date: 2002/04/15 21:04:00 $ $Name: $" include manifest.mn include $(CORE_DEPTH)/coreconf/config.mk include config.mk include $(CORE_DEPTH)/coreconf/rules.mk +# On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile +# ckhelper.c in 64-bit mode for unknown reasons. A workaround is +# to compile it with optimizations turned on. (Bugzilla bug #63815) +ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3) +ifeq ($(USE_64),1) +ifndef BUILD_OPT +$(OBJDIR)/ckhelper.o: ckhelper.c + @$(MAKE_OBJDIR) + $(CC) -o $@ -c -O2 $(CFLAGS) $< +endif +endif +endif + export:: private_export