Bugzilla bug #63815: this AIX compilation problem only occurs in 64-bit

builds.  lib/softoken/pkcs11c.c also needs the workaround.
Modified files: lib/pk11wrap/Makefile, lib/softoken/Makefile
This commit is contained in:
wtc%netscape.com 2000-12-28 00:35:26 +00:00
Родитель 8d839f9706
Коммит fe524519f7
2 изменённых файлов: 18 добавлений и 3 удалений

Просмотреть файл

@ -75,10 +75,11 @@ include $(CORE_DEPTH)/coreconf/rules.mk
export:: private_export
# On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile
# pk11slot.c for unknown reasons. A workaround is to compile it
# with optimizations turned on. (Bugzilla bug #63815)
# pk11slot.c in 64-bit mode for unknown reasons. A workaround is
# to compile it with optimizations turned on. (Bugzilla bug #63815)
ifeq ($(OS_ARCH),AIX)
ifeq ($(OS_RELEASE),4.3)
ifeq ($(USE_64),1)
ifndef BUILD_OPT
$(OBJDIR)/pk11slot.o: pk11slot.c
@$(MAKE_OBJDIR)
@ -86,3 +87,4 @@ $(OBJDIR)/pk11slot.o: pk11slot.c
endif
endif
endif
endif

Просмотреть файл

@ -74,4 +74,17 @@ include $(CORE_DEPTH)/coreconf/rules.mk
export:: private_export
# On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile
# pkcs11c.c in 64-bit mode for unknown reasons. A workaround is
# to compile it with optimizations turned on. (Bugzilla bug #63815)
ifeq ($(OS_ARCH),AIX)
ifeq ($(OS_RELEASE),4.3)
ifeq ($(USE_64),1)
ifndef BUILD_OPT
$(OBJDIR)/pkcs11c.o: pkcs11c.c
@$(MAKE_OBJDIR)
$(CC) -o $@ -c -O2 $(CFLAGS) $<
endif
endif
endif
endif