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

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

mercurial