1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/OpenBSD.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 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 +CC ?= gcc 1.12 +CXX ?= g++ 1.13 +DEFAULT_COMPILER = ${CC} 1.14 +CCC = ${CXX} 1.15 +RANLIB = ranlib 1.16 + 1.17 +CPU_ARCH := $(shell arch -s) 1.18 +ifeq ($(CPU_ARCH),i386) 1.19 +OS_REL_CFLAGS = -Di386 1.20 +CPU_ARCH = x86 1.21 +endif 1.22 + 1.23 +ifndef CLASSIC_NSPR 1.24 +USE_PTHREADS = 1 1.25 +DEFINES += -pthread 1.26 +OS_LIBS += -pthread 1.27 +DSO_LDOPTS += -pthread 1.28 +endif 1.29 + 1.30 +DLL_SUFFIX = so.1.0 1.31 + 1.32 +OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DOPENBSD 1.33 + 1.34 +OS_LIBS = 1.35 + 1.36 +ARCH = openbsd 1.37 + 1.38 +DSO_CFLAGS = -fPIC -DPIC 1.39 +DSO_LDOPTS = -shared -fPIC -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) 1.40 + 1.41 +MKSHLIB = $(CC) $(DSO_LDOPTS) 1.42 + 1.43 +USE_SYSTEM_ZLIB = 1 1.44 +ZLIB_LIBS = -lz