security/nss/coreconf/IRIX.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/coreconf/IRIX.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,94 @@
     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 +include $(CORE_DEPTH)/coreconf/UNIX.mk
    1.10 +
    1.11 +#
    1.12 +# The default implementation strategy for Irix is classic nspr.
    1.13 +#
    1.14 +ifeq ($(USE_PTHREADS),1)
    1.15 +	ifeq ($(USE_N32),1)
    1.16 +		IMPL_STRATEGY = _n32_PTH
    1.17 +	else
    1.18 +		IMPL_STRATEGY = _PTH
    1.19 +	endif
    1.20 +endif
    1.21 +
    1.22 +DEFAULT_COMPILER = cc
    1.23 +
    1.24 +ifdef NS_USE_GCC
    1.25 +	CC		= gcc
    1.26 +	AS		= $(CC) -x assembler-with-cpp
    1.27 +	ODD_CFLAGS	= -Wall -Wno-format -Wno-switch
    1.28 +	ifdef BUILD_OPT
    1.29 +		OPTIMIZER	= -O6
    1.30 +	endif
    1.31 +else
    1.32 +	CC	= cc
    1.33 +	CCC		= CC
    1.34 +	ODD_CFLAGS	= -fullwarn -xansi -woff 1209
    1.35 +	ifdef BUILD_OPT
    1.36 +		ifeq ($(USE_N32),1)
    1.37 +			OPTIMIZER	= -O -OPT:Olimit=4000
    1.38 +		else
    1.39 +			OPTIMIZER	= -O -Olimit 4000
    1.40 +		endif
    1.41 +	endif
    1.42 +
    1.43 +	# For 6.x machines, include this flag
    1.44 +	ifeq (6., $(findstring 6., $(OS_RELEASE)))
    1.45 +		ifeq ($(USE_N32),1)
    1.46 +			ODD_CFLAGS	+= -n32 -mips3 -exceptions
    1.47 +		else
    1.48 +			ODD_CFLAGS	+= -32 -multigot
    1.49 +		endif
    1.50 +	else
    1.51 +		ODD_CFLAGS		+= -xgot
    1.52 +	endif
    1.53 +	ifeq ($(USE_N32),1)
    1.54 +		OS_CFLAGS	+= -dollar
    1.55 +	endif
    1.56 +endif
    1.57 +
    1.58 +ODD_CFLAGS	+= -DSVR4 -DIRIX 
    1.59 +
    1.60 +CPU_ARCH	= mips
    1.61 +
    1.62 +RANLIB		= /bin/true
    1.63 +# For purify
    1.64 +# NOTE: should always define _SGI_MP_SOURCE
    1.65 +NOMD_OS_CFLAGS += $(ODD_CFLAGS) -D_SGI_MP_SOURCE
    1.66 +
    1.67 +OS_CFLAGS += $(NOMD_OS_CFLAGS)
    1.68 +ifdef USE_MDUPDATE
    1.69 +	OS_CFLAGS += -MDupdate $(DEPENDENCIES)
    1.70 +endif
    1.71 +
    1.72 +ifeq ($(USE_N32),1)
    1.73 +	SHLIB_LD_OPTS	+= -n32 -mips3
    1.74 +endif
    1.75 +
    1.76 +MKSHLIB     += $(LD) $(SHLIB_LD_OPTS) -shared -soname $(@:$(OBJDIR)/%.so=%.so)
    1.77 +ifdef MAPFILE
    1.78 +# Add LD options to restrict exported symbols to those in the map file
    1.79 +endif
    1.80 +# Change PROCESS to put the mapfile in the correct format for this platform
    1.81 +PROCESS_MAP_FILE = cp $< $@
    1.82 +
    1.83 +DSO_LDOPTS	= -elf -shared -all
    1.84 +
    1.85 +ifdef DSO_BACKEND
    1.86 +	DSO_LDOPTS += -soname $(DSO_NAME)
    1.87 +endif
    1.88 +
    1.89 +#
    1.90 +# Revision notes:
    1.91 +#
    1.92 +# In the IRIX compilers prior to version 7.2, -n32 implied -mips3.
    1.93 +# Beginning in the 7.2 compilers, -n32 implies -mips4 when the compiler
    1.94 +# is running on a system with a mips4 CPU (e.g. R8K, R10K).
    1.95 +# We want our code to explicitly be mips3 code, so we now explicitly
    1.96 +# set -mips3 whenever we set -n32.
    1.97 +#

mercurial