forked from pool/MozillaFirefox
- mozilla-binutils-visibility.patch to fix build issues with
gcc/binutils combination used in Leap 42.2 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=524
This commit is contained in:
parent
7441e7733c
commit
1f8e55111d
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 15 07:52:18 UTC 2016 - wr@rosenauer.org
|
||||
|
||||
- mozilla-binutils-visibility.patch to fix build issues with
|
||||
gcc/binutils combination used in Leap 42.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 14 08:35:03 UTC 2016 - badshah400@gmail.com
|
||||
|
||||
|
@ -149,6 +149,7 @@ Patch13: mozilla-check_return.patch
|
||||
Patch14: mozilla-gcc6.patch
|
||||
Patch15: mozilla-exclude-nametablecpp.patch
|
||||
Patch16: mozilla-aarch64-48bit-va.patch
|
||||
Patch17: mozilla-binutils-visibility.patch
|
||||
# Firefox/browser
|
||||
Patch101: firefox-kde.patch
|
||||
Patch102: firefox-no-default-ualocale.patch
|
||||
@ -264,6 +265,7 @@ cd $RPM_BUILD_DIR/mozilla
|
||||
%patch14 -p1
|
||||
%patch15 -p1
|
||||
%patch16 -p1
|
||||
%patch17 -p1
|
||||
# Firefox
|
||||
%patch101 -p1
|
||||
%patch102 -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