security/nss/coreconf/NCR3.0.mk

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 #
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 include $(CORE_DEPTH)/coreconf/UNIX.mk
michael@0 7
michael@0 8 DEFAULT_COMPILER = cc
michael@0 9
michael@0 10 ###
michael@0 11 NS_USE_NATIVE = 1
michael@0 12
michael@0 13 # NS_USE_GCC = 1
michael@0 14
michael@0 15 export PATH:=$(PATH):/opt/ncc/bin
michael@0 16 ###
michael@0 17
michael@0 18 RANLIB = true
michael@0 19 GCC_FLAGS_EXTRA += -pipe
michael@0 20
michael@0 21 DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR
michael@0 22
michael@0 23 OS_CFLAGS += -Hnocopyr -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -DPRFSTREAMS_BROKEN
michael@0 24
michael@0 25 ifdef NS_USE_NATIVE
michael@0 26 CC = cc
michael@0 27 CCC = ncc
michael@0 28 CXX = ncc
michael@0 29 # OS_LIBS += -L/opt/ncc/lib
michael@0 30 else
michael@0 31 # OS_LIBS +=
michael@0 32 endif
michael@0 33
michael@0 34 #OS_LIBS += -lsocket -lnsl -ldl -lc
michael@0 35
michael@0 36 MKSHLIB += $(LD) $(DSO_LDOPTS)
michael@0 37 #DSO_LDOPTS += -G -z defs
michael@0 38 DSO_LDOPTS += -G
michael@0 39 ifdef MAPFILE
michael@0 40 # Add LD options to restrict exported symbols to those in the map file
michael@0 41 endif
michael@0 42 # Change PROCESS to put the mapfile in the correct format for this platform
michael@0 43 PROCESS_MAP_FILE = cp $< $@
michael@0 44
michael@0 45 CPU_ARCH = x86
michael@0 46 ARCH = ncr
michael@0 47
michael@0 48 NOSUCHFILE = /solaris-rm-f-sucks
michael@0 49
michael@0 50 # now take care of default GCC (rus@5/5/97)
michael@0 51
michael@0 52 ifdef NS_USE_GCC
michael@0 53 # if gcc-settings are redefined already - don't touch it
michael@0 54 #
michael@0 55 ifeq (,$(findstring gcc, $(CC)))
michael@0 56 CC = gcc
michael@0 57 CCC = g++
michael@0 58 CXX = g++
michael@0 59 # always use -fPIC - some makefiles are still broken and don't distinguish
michael@0 60 # situation when they build shared and static libraries
michael@0 61 CFLAGS += -fPIC -Wall -Wno-switch $(GCC_FLAGS_EXTRA)
michael@0 62 # OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc
michael@0 63 endif
michael@0 64 endif
michael@0 65 ###

mercurial