]> granicus.if.org Git - apache/commitdiff
* modules/ssl/config.m4: Use libtool's -export-symbols-regex flag to
authorJoe Orton <jorton@apache.org>
Wed, 10 Nov 2004 15:11:23 +0000 (15:11 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 10 Nov 2004 15:11:23 +0000 (15:11 +0000)
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

index 4c115761cb12924542ba41a5f784f57d7c50a771..7242f76ed95e911d684a4f0eba99cbbc0dbc81e7 100644 (file)
@@ -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