security/nss/coreconf/HP-UX.mk

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/.
     6 #
     7 # Config stuff for HP-UX
     8 #
    10 include $(CORE_DEPTH)/coreconf/UNIX.mk
    12 DEFAULT_COMPILER = cc
    14 ifeq ($(OS_TEST),ia64)
    15 	CPU_ARCH = ia64
    16 	CPU_TAG = _$(CPU_ARCH)
    17 	ifneq ($(USE_64),1)
    18 		64BIT_TAG = _32
    19 	endif
    20 	DLL_SUFFIX = so
    21 else
    22 	CPU_ARCH = hppa
    23 	DLL_SUFFIX = sl
    24 endif
    25 CC         = cc
    26 CCC        = CC
    27 ifndef NS_USE_GCC
    28 OS_CFLAGS  += -Ae
    29 endif
    30 OS_CFLAGS  += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE -D_USE_BIG_FDS
    32 ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH)
    33 	USE_PTHREADS = 1
    34 	ifeq ($(CLASSIC_NSPR),1)
    35 		USE_PTHREADS =
    36 		IMPL_STRATEGY = _CLASSIC
    37 	endif
    38 	ifeq ($(PTHREADS_USER),1)
    39 		USE_PTHREADS =
    40 		IMPL_STRATEGY = _PTH_USER
    41 	endif
    42 endif
    44 ifdef PTHREADS_USER
    45 	OS_CFLAGS	+= -D_POSIX_C_SOURCE=199506L
    46 endif
    48 LDFLAGS			= -z -Wl,+s
    50 ifdef NS_USE_GCC
    51 LD = $(CC)
    52 endif
    53 MKSHLIB			= $(LD) $(DSO_LDOPTS) $(RPATH)
    54 ifdef MAPFILE
    55 ifndef NS_USE_GCC
    56 MKSHLIB += -c $(MAPFILE)
    57 else
    58 MKSHLIB += -Wl,-c,$(MAPFILE)
    59 endif
    60 endif
    61 PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
    62          sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,+e ,' > $@
    64 ifndef NS_USE_GCC
    65 DSO_LDOPTS		= -b +h $(notdir $@)
    66 RPATH			= +b '$$ORIGIN'
    67 else
    68 DSO_LDOPTS		= -shared -Wl,+h,$(notdir $@)
    69 RPATH			= -Wl,+b,'$$ORIGIN'
    70 endif
    71 ifneq ($(OS_TEST),ia64)
    72 # pa-risc
    73 ifndef USE_64
    74 RPATH			=
    75 endif
    76 endif
    78 # +Z generates position independent code for use in shared libraries.
    79 ifndef NS_USE_GCC
    80 DSO_CFLAGS = +Z
    81 else
    82 DSO_CFLAGS = -fPIC
    83 ASFLAGS   += -x assembler-with-cpp
    84 endif

mercurial