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:
Andrew Johnson
2012-08-07 12:35:12 -05:00
parent 05377e5886
commit a80ec2e0bf

View File

@@ -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 *