From a80ec2e0bf26d8a5d62dee3bb4eb40f1a182571a Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 7 Aug 2012 12:35:12 -0500 Subject: [PATCH] cap5: Fix symbol export when using -fvisibility=hidden The boot_Cap5 symbol must be exported for the module to load. --- src/ca/client/perl/Cap5.xs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ca/client/perl/Cap5.xs b/src/ca/client/perl/Cap5.xs index 3cc25c68b..54ce8decb 100644 --- a/src/ca/client/perl/Cap5.xs +++ b/src/ca/client/perl/Cap5.xs @@ -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 *