security/nss/coreconf/AIX.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/coreconf/AIX.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,67 @@
     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 +# Config stuff for AIX.
    1.10 +
    1.11 +include $(CORE_DEPTH)/coreconf/UNIX.mk
    1.12 +
    1.13 +#
    1.14 +# There are two implementation strategies available on AIX:
    1.15 +# pthreads, and pthreads-user.  The default is pthreads.
    1.16 +# In both strategies, we need to use pthread_user.c, instead of
    1.17 +# aix.c.  The fact that aix.c is never used is somewhat strange.
    1.18 +# 
    1.19 +# So we need to do the following:
    1.20 +# - Default (PTHREADS_USER not defined in the environment or on
    1.21 +#   the command line):
    1.22 +#   Set PTHREADS_USER=1, USE_PTHREADS=1
    1.23 +# - PTHREADS_USER=1 set in the environment or on the command line:
    1.24 +#   Do nothing.
    1.25 +#
    1.26 +ifeq ($(PTHREADS_USER),1)
    1.27 +	USE_PTHREADS =            # just to be safe
    1.28 +	IMPL_STRATEGY = _PTH_USER
    1.29 +else
    1.30 +	USE_PTHREADS = 1
    1.31 +	PTHREADS_USER = 1
    1.32 +endif
    1.33 +
    1.34 +DEFAULT_COMPILER = xlc_r
    1.35 +
    1.36 +CC		= xlc_r
    1.37 +CCC		= xlC_r
    1.38 +
    1.39 +CPU_ARCH	= rs6000
    1.40 +
    1.41 +RANLIB		= ranlib
    1.42 +
    1.43 +OS_CFLAGS	= -DAIX -DSYSV
    1.44 +OS_LIBS 	+= -blibpath:/usr/lib:/lib -lc -lm
    1.45 +
    1.46 +DSO_LDOPTS	= -brtl -bnortllib -bM:SRE -bnoentry
    1.47 +MKSHLIB 	= $(LD) $(DSO_LDOPTS) -blibpath:/usr/lib:/lib -lc -lm
    1.48 +
    1.49 +AIX_WRAP	= $(DIST)/lib/aixwrap.o
    1.50 +AIX_TMP		= $(OBJDIR)/_aix_tmp.o
    1.51 +
    1.52 +ifdef MAPFILE
    1.53 +DSO_LDOPTS	+= -bexport:$(MAPFILE)
    1.54 +else
    1.55 +DSO_LDOPTS	+= -bexpall
    1.56 +endif
    1.57 +
    1.58 +PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
    1.59 +                sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' > $@
    1.60 +
    1.61 +ifdef BUILD_OPT
    1.62 +	OPTIMIZER += -qmaxmem=-1
    1.63 +endif
    1.64 +
    1.65 +ifeq ($(USE_64), 1)
    1.66 +	OS_CFLAGS	+= -DAIX_64BIT
    1.67 +	OBJECT_MODE=64
    1.68 +	export OBJECT_MODE
    1.69 +endif
    1.70 +

mercurial