1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/NCR3.0.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,65 @@ 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 +### 1.14 +NS_USE_NATIVE = 1 1.15 + 1.16 +# NS_USE_GCC = 1 1.17 + 1.18 +export PATH:=$(PATH):/opt/ncc/bin 1.19 +### 1.20 + 1.21 +RANLIB = true 1.22 +GCC_FLAGS_EXTRA += -pipe 1.23 + 1.24 +DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR 1.25 + 1.26 +OS_CFLAGS += -Hnocopyr -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -DPRFSTREAMS_BROKEN 1.27 + 1.28 +ifdef NS_USE_NATIVE 1.29 + CC = cc 1.30 + CCC = ncc 1.31 + CXX = ncc 1.32 +# OS_LIBS += -L/opt/ncc/lib 1.33 +else 1.34 +# OS_LIBS += 1.35 +endif 1.36 + 1.37 +#OS_LIBS += -lsocket -lnsl -ldl -lc 1.38 + 1.39 +MKSHLIB += $(LD) $(DSO_LDOPTS) 1.40 +#DSO_LDOPTS += -G -z defs 1.41 +DSO_LDOPTS += -G 1.42 +ifdef MAPFILE 1.43 +# Add LD options to restrict exported symbols to those in the map file 1.44 +endif 1.45 +# Change PROCESS to put the mapfile in the correct format for this platform 1.46 +PROCESS_MAP_FILE = cp $< $@ 1.47 + 1.48 +CPU_ARCH = x86 1.49 +ARCH = ncr 1.50 + 1.51 +NOSUCHFILE = /solaris-rm-f-sucks 1.52 + 1.53 +# now take care of default GCC (rus@5/5/97) 1.54 + 1.55 +ifdef NS_USE_GCC 1.56 + # if gcc-settings are redefined already - don't touch it 1.57 + # 1.58 + ifeq (,$(findstring gcc, $(CC))) 1.59 + CC = gcc 1.60 + CCC = g++ 1.61 + CXX = g++ 1.62 + # always use -fPIC - some makefiles are still broken and don't distinguish 1.63 + # situation when they build shared and static libraries 1.64 + CFLAGS += -fPIC -Wall -Wno-switch $(GCC_FLAGS_EXTRA) 1.65 +# OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc 1.66 + endif 1.67 +endif 1.68 +###