HP-UXB.11.mk (1438B)
1 # 2 # This Source Code Form is subject to the terms of the Mozilla Public 3 # License, v. 2.0. If a copy of the MPL was not distributed with this 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 include $(CORE_DEPTH)/coreconf/HP-UX.mk 6 7 ifndef NS_USE_GCC 8 CCC = /opt/aCC/bin/aCC -ext 9 ifeq ($(USE_64), 1) 10 ifeq ($(OS_TEST), ia64) 11 ARCHFLAG = -Aa +e +p +DD64 12 else 13 # Our HP-UX build machine has a strange problem. If 14 # a 64-bit PA-RISC executable calls getcwd() in a 15 # network-mounted directory, it fails with ENOENT. 16 # We don't know why. Since nsinstall calls getcwd(), 17 # this breaks our 64-bit HP-UX nightly builds. None 18 # of our other HP-UX machines have this problem. 19 # 20 # We worked around this problem by building nsinstall 21 # as a 32-bit PA-RISC executable for 64-bit PA-RISC 22 # builds. -- wtc 2003-06-03 23 ifdef INTERNAL_TOOLS 24 ARCHFLAG = +DAportable +DS2.0 25 else 26 ARCHFLAG = -Aa +e +DA2.0W +DS2.0 +DChpux 27 endif 28 endif 29 else 30 ifeq ($(OS_TEST), ia64) 31 ARCHFLAG = -Aa +e +p +DD32 32 else 33 ARCHFLAG = +DAportable +DS2.0 34 endif 35 endif 36 else 37 CCC = aCC 38 endif 39 40 # 41 # To use the true pthread (kernel thread) library on HP-UX 42 # 11.x, we should define _POSIX_C_SOURCE to be 199506L. 43 # The _REENTRANT macro is deprecated. 44 # 45 46 OS_CFLAGS += $(ARCHFLAG) -DHPUX11 -D_POSIX_C_SOURCE=199506L 47 OS_LIBS += -lpthread -lm -lrt 48 HPUX11 = 1