1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/HP-UX.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,84 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +# 1.10 +# Config stuff for HP-UX 1.11 +# 1.12 + 1.13 +include $(CORE_DEPTH)/coreconf/UNIX.mk 1.14 + 1.15 +DEFAULT_COMPILER = cc 1.16 + 1.17 +ifeq ($(OS_TEST),ia64) 1.18 + CPU_ARCH = ia64 1.19 + CPU_TAG = _$(CPU_ARCH) 1.20 + ifneq ($(USE_64),1) 1.21 + 64BIT_TAG = _32 1.22 + endif 1.23 + DLL_SUFFIX = so 1.24 +else 1.25 + CPU_ARCH = hppa 1.26 + DLL_SUFFIX = sl 1.27 +endif 1.28 +CC = cc 1.29 +CCC = CC 1.30 +ifndef NS_USE_GCC 1.31 +OS_CFLAGS += -Ae 1.32 +endif 1.33 +OS_CFLAGS += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE -D_USE_BIG_FDS 1.34 + 1.35 +ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH) 1.36 + USE_PTHREADS = 1 1.37 + ifeq ($(CLASSIC_NSPR),1) 1.38 + USE_PTHREADS = 1.39 + IMPL_STRATEGY = _CLASSIC 1.40 + endif 1.41 + ifeq ($(PTHREADS_USER),1) 1.42 + USE_PTHREADS = 1.43 + IMPL_STRATEGY = _PTH_USER 1.44 + endif 1.45 +endif 1.46 + 1.47 +ifdef PTHREADS_USER 1.48 + OS_CFLAGS += -D_POSIX_C_SOURCE=199506L 1.49 +endif 1.50 + 1.51 +LDFLAGS = -z -Wl,+s 1.52 + 1.53 +ifdef NS_USE_GCC 1.54 +LD = $(CC) 1.55 +endif 1.56 +MKSHLIB = $(LD) $(DSO_LDOPTS) $(RPATH) 1.57 +ifdef MAPFILE 1.58 +ifndef NS_USE_GCC 1.59 +MKSHLIB += -c $(MAPFILE) 1.60 +else 1.61 +MKSHLIB += -Wl,-c,$(MAPFILE) 1.62 +endif 1.63 +endif 1.64 +PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \ 1.65 + sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,+e ,' > $@ 1.66 + 1.67 +ifndef NS_USE_GCC 1.68 +DSO_LDOPTS = -b +h $(notdir $@) 1.69 +RPATH = +b '$$ORIGIN' 1.70 +else 1.71 +DSO_LDOPTS = -shared -Wl,+h,$(notdir $@) 1.72 +RPATH = -Wl,+b,'$$ORIGIN' 1.73 +endif 1.74 +ifneq ($(OS_TEST),ia64) 1.75 +# pa-risc 1.76 +ifndef USE_64 1.77 +RPATH = 1.78 +endif 1.79 +endif 1.80 + 1.81 +# +Z generates position independent code for use in shared libraries. 1.82 +ifndef NS_USE_GCC 1.83 +DSO_CFLAGS = +Z 1.84 +else 1.85 +DSO_CFLAGS = -fPIC 1.86 +ASFLAGS += -x assembler-with-cpp 1.87 +endif