1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/FreeBSD.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,58 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +include $(CORE_DEPTH)/coreconf/UNIX.mk 1.10 + 1.11 +DEFAULT_COMPILER = gcc 1.12 +CC = gcc 1.13 +CCC = g++ 1.14 +RANLIB = ranlib 1.15 + 1.16 +CPU_ARCH = $(OS_TEST) 1.17 +ifeq ($(CPU_ARCH),i386) 1.18 +CPU_ARCH = x86 1.19 +endif 1.20 +ifeq ($(CPU_ARCH),pc98) 1.21 +CPU_ARCH = x86 1.22 +endif 1.23 +ifeq ($(CPU_ARCH),amd64) 1.24 +CPU_ARCH = x86_64 1.25 +endif 1.26 + 1.27 +OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK 1.28 + 1.29 +DSO_CFLAGS = -fPIC 1.30 +DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@) 1.31 + 1.32 +# 1.33 +# The default implementation strategy for FreeBSD is pthreads. 1.34 +# 1.35 +ifndef CLASSIC_NSPR 1.36 +USE_PTHREADS = 1 1.37 +DEFINES += -D_THREAD_SAFE -D_REENTRANT 1.38 +OS_LIBS += -pthread 1.39 +DSO_LDOPTS += -pthread 1.40 +endif 1.41 + 1.42 +ARCH = freebsd 1.43 + 1.44 +MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo elf) 1.45 + 1.46 +ifeq ($(MOZ_OBJFORMAT),elf) 1.47 +DLL_SUFFIX = so 1.48 +else 1.49 +DLL_SUFFIX = so.1.0 1.50 +endif 1.51 + 1.52 +MKSHLIB = $(CC) $(DSO_LDOPTS) 1.53 +ifdef MAPFILE 1.54 + MKSHLIB += -Wl,--version-script,$(MAPFILE) 1.55 +endif 1.56 +PROCESS_MAP_FILE = grep -v ';-' $< | \ 1.57 + sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@ 1.58 + 1.59 +G++INCLUDES = -I/usr/include/g++ 1.60 + 1.61 +INCLUDES += -I/usr/X11R6/include