From: Joe Orton Date: Tue, 17 Apr 2012 08:28:06 +0000 (+0000) Subject: * modules/filters/config.m4: Prevent libsed internals from polluting X-Git-Tag: 2.5.0-alpha~7142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc6d7847dea66192030b70085b4df394ab369b25;p=apache * modules/filters/config.m4: Prevent libsed internals from polluting the global symbol namespace. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1326991 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/config.m4 b/modules/filters/config.m4 index 4ef2d3a59f..966f77a551 100644 --- a/modules/filters/config.m4 +++ b/modules/filters/config.m4 @@ -16,7 +16,13 @@ APACHE_MODULE(reflector, Reflect request through the output filter stack, , , ) APACHE_MODULE(substitute, response content rewrite-like filtering, , , most) sed_obj="mod_sed.lo sed0.lo sed1.lo regexp.lo" -APACHE_MODULE(sed, filter request and/or response bodies through sed, $sed_obj, , most) +APACHE_MODULE(sed, filter request and/or response bodies through sed, $sed_obj, , most, [ + if test "x$enable_sed" = "xshared"; then + # The only symbol which needs to be exported is the module + # structure, so ask libtool to hide libsed internals: + APR_ADDTO(MOD_SED_LDADD, [-export-symbols-regex sed_module]) + fi +]) if test "$ac_cv_ebcdic" = "yes"; then # mod_charset_lite can be very useful on an ebcdic system,