security/nss/coreconf/QNX.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/coreconf/QNX.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     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 +USE_PTHREADS = 1
    1.12 +
    1.13 +ifeq ($(USE_PTHREADS),1)
    1.14 +	IMPL_STRATEGY = _PTH
    1.15 +endif
    1.16 +
    1.17 +CC			= qcc
    1.18 +CCC			= qcc
    1.19 +RANLIB			= ranlib
    1.20 +
    1.21 +DEFAULT_COMPILER = qcc
    1.22 +ifeq ($(OS_TEST),mips)
    1.23 +	CPU_ARCH	= mips
    1.24 +else
    1.25 +	CPU_ARCH	= x86
    1.26 +endif
    1.27 +
    1.28 +MKSHLIB		= $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
    1.29 +ifdef BUILD_OPT
    1.30 +	OPTIMIZER	= -O2
    1.31 +endif
    1.32 +
    1.33 +OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Vgcc_ntox86 -Wall -pipe -DNTO -DHAVE_STRERROR -D_QNX_SOURCE -D_POSIX_C_SOURCE=199506 -D_XOPEN_SOURCE=500
    1.34 +
    1.35 +ifdef USE_PTHREADS
    1.36 +	DEFINES		+= -D_REENTRANT
    1.37 +endif
    1.38 +
    1.39 +ARCH			= QNX
    1.40 +
    1.41 +DSO_CFLAGS		= -Wc,-fPIC
    1.42 +DSO_LDOPTS		= -shared

mercurial