From dc6d7847dea66192030b70085b4df394ab369b25 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 17 Apr 2012 08:28:06 +0000 Subject: [PATCH] * 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 --- modules/filters/config.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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, -- 2.50.0