forked from pool/MozillaThunderbird
- mozilla-binutils-visibility.patch to fix build issues with
gcc/binutils combination used in Leap 42.2 (boo#984637) OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=325
This commit is contained in:
parent
c29742319f
commit
12225ae415
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 24 14:10:58 UTC 2016 - wr@rosenauer.org
|
||||||
|
|
||||||
|
- mozilla-binutils-visibility.patch to fix build issues with
|
||||||
|
gcc/binutils combination used in Leap 42.2 (boo#984637)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 23 10:15:51 UTC 2016 - wr@rosenauer.org
|
Thu Jun 23 10:15:51 UTC 2016 - wr@rosenauer.org
|
||||||
|
|
||||||
|
@ -106,6 +106,7 @@ Patch5: mozilla-no-stdcxx-check.patch
|
|||||||
Patch6: mozilla-gcc6.patch
|
Patch6: mozilla-gcc6.patch
|
||||||
Patch7: mozilla-flexible-array-member-in-union.patch
|
Patch7: mozilla-flexible-array-member-in-union.patch
|
||||||
Patch8: mozilla-aarch64-48bit-va.patch
|
Patch8: mozilla-aarch64-48bit-va.patch
|
||||||
|
Patch9: mozilla-binutils-visibility.patch
|
||||||
# Thunderbird/mail
|
# Thunderbird/mail
|
||||||
Patch20: tb-ssldap.patch
|
Patch20: tb-ssldap.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -204,6 +205,7 @@ pushd mozilla
|
|||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
|
%patch9 -p1
|
||||||
popd
|
popd
|
||||||
# comm-central patches
|
# comm-central patches
|
||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
|
30
mozilla-binutils-visibility.patch
Normal file
30
mozilla-binutils-visibility.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# HG changeset patch
|
||||||
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
||||||
|
# Parent 83bc32d997c714b607db1ffa71f02b30e1484a75
|
||||||
|
From: NetBSD
|
||||||
|
Subject: Workaround for gcc/binutils combination in Leap 42.2
|
||||||
|
References:
|
||||||
|
https://bugzilla.opensuse.org/show_bug.cgi?id=984637
|
||||||
|
|
||||||
|
diff --git a/xpcom/components/Module.h b/xpcom/components/Module.h
|
||||||
|
--- a/xpcom/components/Module.h
|
||||||
|
+++ b/xpcom/components/Module.h
|
||||||
|
@@ -120,17 +120,17 @@ struct Module
|
||||||
|
#if defined(MOZILLA_INTERNAL_API)
|
||||||
|
# define NSMODULE_NAME(_name) _name##_NSModule
|
||||||
|
# if defined(_MSC_VER)
|
||||||
|
# pragma section(".kPStaticModules$M", read)
|
||||||
|
# pragma comment(linker, "/merge:.kPStaticModules=.rdata")
|
||||||
|
# define NSMODULE_SECTION __declspec(allocate(".kPStaticModules$M"), dllexport)
|
||||||
|
# elif defined(__GNUC__)
|
||||||
|
# if defined(__ELF__)
|
||||||
|
-# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("protected")))
|
||||||
|
+# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("default")))
|
||||||
|
# elif defined(__MACH__)
|
||||||
|
# define NSMODULE_SECTION __attribute__((section("__DATA, .kPStaticModules"), visibility("default")))
|
||||||
|
# elif defined (_WIN32)
|
||||||
|
# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), dllexport))
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# if !defined(NSMODULE_SECTION)
|
||||||
|
# error Do not know how to define sections.
|
Loading…
Reference in New Issue
Block a user