Blame nss/coreconf/HP-UX.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
Packit 40b132
#
Packit 40b132
# Config stuff for HP-UX
Packit 40b132
#
Packit 40b132
Packit 40b132
include $(CORE_DEPTH)/coreconf/UNIX.mk
Packit 40b132
Packit 40b132
DEFAULT_COMPILER = cc
Packit 40b132
Packit 40b132
ifeq ($(OS_TEST),ia64)
Packit 40b132
	CPU_ARCH = ia64
Packit 40b132
	CPU_TAG = _$(CPU_ARCH)
Packit 40b132
	ifneq ($(USE_64),1)
Packit 40b132
		64BIT_TAG = _32
Packit 40b132
	endif
Packit 40b132
	DLL_SUFFIX = so
Packit 40b132
else
Packit 40b132
	CPU_ARCH = hppa
Packit 40b132
	DLL_SUFFIX = sl
Packit 40b132
endif
Packit 40b132
CC         = cc
Packit 40b132
CCC        = CC
Packit 40b132
ifndef NS_USE_GCC
Packit 40b132
OS_CFLAGS  += -Ae
Packit 40b132
endif
Packit 40b132
OS_CFLAGS  += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE -D_USE_BIG_FDS
Packit 40b132
Packit 40b132
ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH)
Packit 40b132
	USE_PTHREADS = 1
Packit 40b132
	ifeq ($(CLASSIC_NSPR),1)
Packit 40b132
		USE_PTHREADS =
Packit 40b132
		IMPL_STRATEGY = _CLASSIC
Packit 40b132
	endif
Packit 40b132
	ifeq ($(PTHREADS_USER),1)
Packit 40b132
		USE_PTHREADS =
Packit 40b132
		IMPL_STRATEGY = _PTH_USER
Packit 40b132
	endif
Packit 40b132
endif
Packit 40b132
Packit 40b132
ifdef PTHREADS_USER
Packit 40b132
	OS_CFLAGS	+= -D_POSIX_C_SOURCE=199506L
Packit 40b132
endif
Packit 40b132
Packit 40b132
LDFLAGS			= -z -Wl,+s
Packit 40b132
Packit 40b132
ifdef NS_USE_GCC
Packit 40b132
LD = $(CC)
Packit 40b132
endif
Packit 40b132
MKSHLIB			= $(LD) $(DSO_LDOPTS) $(RPATH)
Packit 40b132
ifdef MAPFILE
Packit 40b132
ifndef NS_USE_GCC
Packit 40b132
MKSHLIB += -c $(MAPFILE)
Packit 40b132
else
Packit 40b132
MKSHLIB += -Wl,-c,$(MAPFILE)
Packit 40b132
endif
Packit 40b132
endif
Packit 40b132
PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
Packit 40b132
         sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,+e ,' > $@
Packit 40b132
Packit 40b132
ifndef NS_USE_GCC
Packit 40b132
DSO_LDOPTS		= -b +h $(notdir $@)
Packit 40b132
RPATH			= +b '$$ORIGIN'
Packit 40b132
else
Packit 40b132
DSO_LDOPTS		= -shared -Wl,+h,$(notdir $@)
Packit 40b132
RPATH			= -Wl,+b,'$$ORIGIN'
Packit 40b132
endif
Packit 40b132
ifneq ($(OS_TEST),ia64)
Packit 40b132
# pa-risc
Packit 40b132
ifndef USE_64
Packit 40b132
RPATH			=
Packit 40b132
endif
Packit 40b132
endif
Packit 40b132
Packit 40b132
# +Z generates position independent code for use in shared libraries.
Packit 40b132
ifndef NS_USE_GCC
Packit 40b132
DSO_CFLAGS = +Z
Packit 40b132
else
Packit 40b132
DSO_CFLAGS = -fPIC
Packit 40b132
ASFLAGS   += -x assembler-with-cpp
Packit 40b132
endif