12225ae415
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
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
# 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.
|