From 44581dd4bbf43375790ebd107a8dbde361b66de6 Mon Sep 17 00:00:00 2001 From: Ariel Constenla-Haile Date: Thu, 15 Dec 2011 03:16:45 +0000 Subject: moz/nss: missing Linux3.X.mk in security/coreconf Applied upstream patch. Vid. https://bugzilla.mozilla.org/show_bug.cgi?id=661609 --- moz/patches/nss_linux.patch | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 moz/patches/nss_linux.patch (limited to 'moz/patches') diff --git a/moz/patches/nss_linux.patch b/moz/patches/nss_linux.patch new file mode 100644 index 000000000000..167b1f0cf904 --- /dev/null +++ b/moz/patches/nss_linux.patch @@ -0,0 +1,35 @@ +diff -uNrp misc/mozilla/security/coreconf/config.mk misc/build/mozilla/security/coreconf/config.mk +--- misc/mozilla/security/coreconf/config.mk 2008-06-15 19:22:15.000000000 -0300 ++++ misc/build/mozilla/security/coreconf/config.mk 2011-12-14 22:27:52.383209720 -0300 +@@ -63,7 +63,7 @@ endif + ####################################################################### + + TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \ +- OpenVMS AIX ++ OpenVMS AIX Linux + + ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET))) + include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk +diff -uNrp misc/mozilla/security/coreconf/Linux.mk misc/build/mozilla/security/coreconf/Linux.mk +--- misc/mozilla/security/coreconf/Linux.mk 2011-12-14 22:26:12.391200222 -0300 ++++ misc/build/mozilla/security/coreconf/Linux.mk 2011-12-14 22:29:30.183219009 -0300 +@@ -177,3 +177,19 @@ G++INCLUDES = -I/usr/include/g++ + # Always set CPU_TAG on Linux, OpenVMS, WINCE. + # + CPU_TAG = _$(CPU_ARCH) ++ ++OS_REL_CFLAGS += -DLINUX2_1 ++MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) $(RPATH) ++ ++ifdef MAPFILE ++ MKSHLIB += -Wl,--version-script,$(MAPFILE) ++endif ++PROCESS_MAP_FILE = grep -v ';-' $< | \ ++ sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@ ++ ++ifeq ($(OS_RELEASE),2.4) ++# Softoken 3.13 uses NO_FORK_CHECK only. ++# Softoken 3.12 uses NO_FORK_CHECK and NO_CHECK_FORK. ++# Don't use NO_CHECK_FORK in new code. ++DEFINES += -DNO_FORK_CHECK -DNO_CHECK_FORK ++endif -- cgit