michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: include $(CORE_DEPTH)/coreconf/HP-UX.mk michael@0: michael@0: ifndef NS_USE_GCC michael@0: CCC = /opt/aCC/bin/aCC -ext michael@0: ifeq ($(USE_64), 1) michael@0: ifeq ($(OS_TEST), ia64) michael@0: ARCHFLAG = -Aa +e +p +DD64 michael@0: else michael@0: # Our HP-UX build machine has a strange problem. If michael@0: # a 64-bit PA-RISC executable calls getcwd() in a michael@0: # network-mounted directory, it fails with ENOENT. michael@0: # We don't know why. Since nsinstall calls getcwd(), michael@0: # this breaks our 64-bit HP-UX nightly builds. None michael@0: # of our other HP-UX machines have this problem. michael@0: # michael@0: # We worked around this problem by building nsinstall michael@0: # as a 32-bit PA-RISC executable for 64-bit PA-RISC michael@0: # builds. -- wtc 2003-06-03 michael@0: ifdef INTERNAL_TOOLS michael@0: ARCHFLAG = +DAportable +DS2.0 michael@0: else michael@0: ARCHFLAG = -Aa +e +DA2.0W +DS2.0 +DChpux michael@0: endif michael@0: endif michael@0: else michael@0: ifeq ($(OS_TEST), ia64) michael@0: ARCHFLAG = -Aa +e +p +DD32 michael@0: else michael@0: ARCHFLAG = +DAportable +DS2.0 michael@0: endif michael@0: endif michael@0: else michael@0: CCC = aCC michael@0: endif michael@0: michael@0: # michael@0: # To use the true pthread (kernel thread) library on HP-UX michael@0: # 11.x, we should define _POSIX_C_SOURCE to be 199506L. michael@0: # The _REENTRANT macro is deprecated. michael@0: # michael@0: michael@0: OS_CFLAGS += $(ARCHFLAG) -DHPUX11 -D_POSIX_C_SOURCE=199506L michael@0: OS_LIBS += -lpthread -lm -lrt michael@0: HPUX11 = 1