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
8 CCC
= /opt
/aCC
/bin
/aCC
-ext
10 ifeq ($(OS_TEST
), ia64
)
11 ARCHFLAG
= -Aa
+e
+p
+DD64
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.
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
24 ARCHFLAG
= +DAportable
+DS2.0
26 ARCHFLAG
= -Aa
+e
+DA2.0W
+DS2.0
+DChpux
30 ifeq ($(OS_TEST
), ia64
)
31 ARCHFLAG
= -Aa
+e
+p
+DD32
33 ARCHFLAG
= +DAportable
+DS2.0
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.
46 OS_CFLAGS
+= $(ARCHFLAG
) -DHPUX11
-D_POSIX_C_SOURCE
=199506L
47 OS_LIBS
+= -lpthread
-lm
-lrt