cap5: Fix symbol export when using -fvisibility=hidden
The boot_Cap5 symbol must be exported for the module to load.
This commit is contained in:
@@ -1222,6 +1222,13 @@ PROTOTYPES: DISABLE
|
||||
|
||||
BOOT:
|
||||
p5_ctx = Perl_get_context();
|
||||
/* Ensure that the generated boot_Cap5 function is visible
|
||||
* outside of the libCap5.so shared library when compiling
|
||||
* with GCC4+ and -fvisibility=hidden is used.
|
||||
*/
|
||||
#if __GNUC__ >= 4
|
||||
#pragma GCC visibility push(default)
|
||||
#endif
|
||||
|
||||
|
||||
SV *
|
||||
|
||||
Reference in New Issue
Block a user