1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/ReliantUNIX.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,58 @@ 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 +DEFAULT_COMPILER = cc 1.12 + 1.13 +ifdef NS_USE_GCC 1.14 + ## gcc-2.7.2 homebrewn 1.15 + CC = gcc 1.16 + CCC = g++ 1.17 + AS = $(CC) 1.18 + ASFLAGS += -x assembler-with-cpp 1.19 + LD = gld 1.20 + ODD_CFLAGS = -pipe -Wall -Wno-format -Wno-switch 1.21 + ifdef BUILD_OPT 1.22 + OPTIMIZER += -O6 1.23 + endif 1.24 + MKSHLIB = $(LD) 1.25 + MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so) 1.26 + DSO_LDOPTS += -G -Xlinker -Blargedynsym 1.27 +else 1.28 + ## native compiler (CDS++ 1.0) 1.29 +# CC = /usr/bin/cc 1.30 + CC = cc 1.31 + CCC = /usr/bin/CC 1.32 + AS = /usr/bin/cc 1.33 + ODD_CFLAGS = 1.34 + ifdef BUILD_OPT 1.35 + OPTIMIZER += -O -F Olimit,4000 1.36 + endif 1.37 + MKSHLIB = $(CC) 1.38 + MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so) 1.39 + DSO_LDOPTS += -G -W l,-Blargedynsym 1.40 +endif 1.41 +ifdef MAPFILE 1.42 +# Add LD options to restrict exported symbols to those in the map file 1.43 +endif 1.44 +# Change PROCESS to put the mapfile in the correct format for this platform 1.45 +PROCESS_MAP_FILE = cp $< $@ 1.46 + 1.47 +NOSUCHFILE = /sni-rm-f-sucks 1.48 +ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX 1.49 +CPU_ARCH = mips 1.50 +RANLIB = /bin/true 1.51 + 1.52 +# For purify 1.53 +NOMD_OS_CFLAGS += $(ODD_CFLAGS) 1.54 + 1.55 +# we do not have -MDupdate ... 1.56 +OS_CFLAGS += $(NOMD_OS_CFLAGS) 1.57 +OS_LIBS += -lsocket -lnsl -lresolv -lgen -ldl -lc /usr/ucblib/libucb.a 1.58 + 1.59 +ifdef DSO_BACKEND 1.60 + DSO_LDOPTS += -h $(DSO_NAME) 1.61 +endif