mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-01 10:39:26 +00:00
Fix linking libxul.so with binutils/GNU ld >= 2.26.
This is a patch from 2016/04/27 16:36:50 ryoon found on http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/www/firefox45/patches/#dirlist. This should be a permanent fix for #704 as opposed to enforcing ld.gold.
This commit is contained in:
@@ -124,7 +124,7 @@ struct Module
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user