security/nss/coreconf/BSD_OS.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	= gcc
     9 CC			= gcc
    10 CCC			= g++
    11 RANLIB			= ranlib
    13 ifeq ($(OS_TEST),i386)
    14 	OS_REL_CFLAGS	= -D__i386__
    15 	CPU_ARCH	= x86
    16 else
    17 ifeq ($(OS_TEST),ppc)
    18 	OS_REL_CFLAGS	= -D__ppc__
    19 	CPU_ARCH	= ppc
    20 else
    21 ifeq ($(OS_TEST),sparc)
    22 	OS_REL_CFLAGS	= -D__sparc__
    23 	CPU_ARCH	= sparc
    24 else
    25 # treat the ultrasparc like a regular sparc, at least for now!
    26 ifeq ($(OS_TEST),sparc_v9)
    27 	OS_REL_CFLAGS	= -D__sparc__
    28 	CPU_ARCH	= sparc
    29 endif
    30 endif
    31 endif
    32 endif
    34 DLL_SUFFIX		= so
    36 OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -DBSD_OS -DBSDI -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
    38 ARCH			= bsdos
    40 DSO_CFLAGS		= -fPIC -DPIC
    41 DSO_LDOPTS		= -shared -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
    43 ifdef LIBRUNPATH
    44 DSO_LDOPTS		+= -Wl,-R$(LIBRUNPATH)
    45 endif
    47 MKSHLIB			= $(CC) $(DSO_LDOPTS)
    48 ifdef MAPFILE
    49 # Add LD options to restrict exported symbols to those in the map file
    50 endif
    51 # Change PROCESS to put the mapfile in the correct format for this platform
    52 PROCESS_MAP_FILE = cp $< $@
    54 G++INCLUDES		= -I/usr/include/g++
    56 INCLUDES		+= -I/usr/X11R6/include

mercurial