openbsd-ports/security/nss/patches/patch-nss_lib_freebl_config_mk
landry d6923b69fa Update to nss 3.37, needed by gecko 61.
See https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.37_release_notes

Interestingly, in nss 3.31 the way entropy is gathered from the system
was revamped, and in #1057343 it started using the getentropy() syscall
by default if available, with a fallback to /dev/urandom...but only on
linux/glibc 2.25.

Add a patch to also use getentropy() on OpenBSD.. reported upstream in
#1461075
2018-05-12 18:10:12 +00:00

20 lines
634 B
Plaintext

$OpenBSD: patch-nss_lib_freebl_config_mk,v 1.2 2018/05/12 18:10:12 landry Exp $
Fix build on non-clang archs
https://bugzilla.mozilla.org/show_bug.cgi?id=1436932
Index: nss/lib/freebl/config.mk
--- nss/lib/freebl/config.mk.orig
+++ nss/lib/freebl/config.mk
@@ -94,6 +94,10 @@ ifeq (,$(filter-out DragonFly FreeBSD Linux NetBSD Ope
CFLAGS += -std=gnu99
endif
+ifeq ($(OS_ARCH), OpenBSD)
+CFLAGS += -std=gnu99
+endif
+
ifeq ($(OS_ARCH), Darwin)
CFLAGS += -std=gnu99
EXTRA_SHARED_LIBS += -dylib_file @executable_path/libplc4.dylib:$(DIST)/lib/libplc4.dylib -dylib_file @executable_path/libplds4.dylib:$(DIST)/lib/libplds4.dylib