security/nss/coreconf/ReliantUNIX.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 ifdef NS_USE_GCC
    11 	## gcc-2.7.2 homebrewn
    12 	CC          = gcc
    13 	CCC         = g++
    14 	AS          = $(CC)
    15 	ASFLAGS     += -x assembler-with-cpp
    16 	LD          = gld
    17 	ODD_CFLAGS  = -pipe -Wall -Wno-format -Wno-switch
    18 	ifdef BUILD_OPT
    19 		OPTIMIZER += -O6
    20 	endif
    21 	MKSHLIB     = $(LD)
    22 	MKSHLIB    += -G -h $(@:$(OBJDIR)/%.so=%.so)
    23 	DSO_LDOPTS += -G -Xlinker -Blargedynsym
    24 else
    25 	## native compiler (CDS++ 1.0)
    26 #	CC   = /usr/bin/cc
    27 	CC   = cc
    28 	CCC  = /usr/bin/CC
    29 	AS   = /usr/bin/cc
    30 	ODD_CFLAGS  = 
    31 	ifdef BUILD_OPT
    32 		OPTIMIZER += -O -F Olimit,4000
    33 	endif
    34 	MKSHLIB     = $(CC)
    35 	MKSHLIB    += -G -h $(@:$(OBJDIR)/%.so=%.so)
    36 	DSO_LDOPTS += -G -W l,-Blargedynsym
    37 endif
    38 ifdef MAPFILE
    39 # Add LD options to restrict exported symbols to those in the map file
    40 endif
    41 # Change PROCESS to put the mapfile in the correct format for this platform
    42 PROCESS_MAP_FILE = cp $< $@
    44 NOSUCHFILE  = /sni-rm-f-sucks
    45 ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX
    46 CPU_ARCH    = mips
    47 RANLIB      = /bin/true
    49 # For purify
    50 NOMD_OS_CFLAGS += $(ODD_CFLAGS)
    52 # we do not have -MDupdate ...
    53 OS_CFLAGS   += $(NOMD_OS_CFLAGS)
    54 OS_LIBS     += -lsocket -lnsl -lresolv -lgen -ldl -lc /usr/ucblib/libucb.a
    56 ifdef DSO_BACKEND
    57 	DSO_LDOPTS += -h $(DSO_NAME)
    58 endif

mercurial