From 4ada6c29663000a34cd57c60632760f952d4fcdb Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Wed, 10 Nov 2004 15:11:23 +0000 Subject: [PATCH] * modules/ssl/config.m4: Use libtool's -export-symbols-regex flag to hide all global symbols defined by mod_ssl other than the module structure (where possible). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105740 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/config.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ssl/config.m4 b/modules/ssl/config.m4 index 4c115761cb..7242f76ed9 100644 --- a/modules/ssl/config.m4 +++ b/modules/ssl/config.m4 @@ -116,6 +116,11 @@ APACHE_MODULE(ssl, [SSL/TLS support (mod_ssl)], $ssl_objs, , no, [ APACHE_CHECK_SSL_TOOLKIT APR_SETVAR(MOD_SSL_LDADD, [\$(SSL_LIBS)]) CHECK_DISTCACHE + if test "x$enable_ssl" = "xshared"; then + # The only symbol which needs to be exported is the module + # structure, so ask libtool to hide everything else: + APR_ADDTO(MOD_SSL_LDADD, [-export-symbols-regex ssl_module]) + fi ]) # Ensure that other modules can pick up mod_ssl.h -- 2.40.0