security/nss/coreconf/NetBSD.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 CPU_ARCH		:= $(shell uname -p)
    14 ifeq ($(CPU_ARCH),i386)
    15 OS_REL_CFLAGS		= -Di386
    16 CPU_ARCH		= x86
    17 endif
    19 ifndef OBJECT_FMT
    20 OBJECT_FMT		:= $(shell if echo __ELF__ | $${CC:-cc} -E - | grep -q __ELF__ ; then echo a.out ; else echo ELF ; fi)
    21 endif
    23 ifeq ($(OBJECT_FMT),ELF)
    24 DLL_SUFFIX		= so
    25 else
    26 DLL_SUFFIX		= so.1.0
    27 endif
    29 OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
    31 OS_LIBS			= -lcompat
    33 ARCH			= netbsd
    35 DSO_CFLAGS		= -fPIC -DPIC
    36 DSO_LDOPTS		= -shared
    37 ifeq ($(OBJECT_FMT),ELF)
    38 DSO_LDOPTS		+= -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
    39 endif
    41 ifdef LIBRUNPATH
    42 DSO_LDOPTS		+= -Wl,-R$(LIBRUNPATH)
    43 endif
    45 MKSHLIB			= $(CC) $(DSO_LDOPTS)
    46 ifdef MAPFILE
    47 # Add LD options to restrict exported symbols to those in the map file
    48 endif
    49 # Change PROCESS to put the mapfile in the correct format for this platform
    50 PROCESS_MAP_FILE = cp $< $@
    53 G++INCLUDES		= -I/usr/include/g++
    55 INCLUDES		+= -I/usr/X11R6/include

mercurial