Blame nss/coreconf/HP-UXB.11.mk

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