security/nss/coreconf/FreeBSD.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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 = gcc
michael@0 9 CC = gcc
michael@0 10 CCC = g++
michael@0 11 RANLIB = ranlib
michael@0 12
michael@0 13 CPU_ARCH = $(OS_TEST)
michael@0 14 ifeq ($(CPU_ARCH),i386)
michael@0 15 CPU_ARCH = x86
michael@0 16 endif
michael@0 17 ifeq ($(CPU_ARCH),pc98)
michael@0 18 CPU_ARCH = x86
michael@0 19 endif
michael@0 20 ifeq ($(CPU_ARCH),amd64)
michael@0 21 CPU_ARCH = x86_64
michael@0 22 endif
michael@0 23
michael@0 24 OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
michael@0 25
michael@0 26 DSO_CFLAGS = -fPIC
michael@0 27 DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@)
michael@0 28
michael@0 29 #
michael@0 30 # The default implementation strategy for FreeBSD is pthreads.
michael@0 31 #
michael@0 32 ifndef CLASSIC_NSPR
michael@0 33 USE_PTHREADS = 1
michael@0 34 DEFINES += -D_THREAD_SAFE -D_REENTRANT
michael@0 35 OS_LIBS += -pthread
michael@0 36 DSO_LDOPTS += -pthread
michael@0 37 endif
michael@0 38
michael@0 39 ARCH = freebsd
michael@0 40
michael@0 41 MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo elf)
michael@0 42
michael@0 43 ifeq ($(MOZ_OBJFORMAT),elf)
michael@0 44 DLL_SUFFIX = so
michael@0 45 else
michael@0 46 DLL_SUFFIX = so.1.0
michael@0 47 endif
michael@0 48
michael@0 49 MKSHLIB = $(CC) $(DSO_LDOPTS)
michael@0 50 ifdef MAPFILE
michael@0 51 MKSHLIB += -Wl,--version-script,$(MAPFILE)
michael@0 52 endif
michael@0 53 PROCESS_MAP_FILE = grep -v ';-' $< | \
michael@0 54 sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@
michael@0 55
michael@0 56 G++INCLUDES = -I/usr/include/g++
michael@0 57
michael@0 58 INCLUDES += -I/usr/X11R6/include

mercurial