]> granicus.if.org Git - apache/commitdiff
* modules/filters/config.m4: Prevent libsed internals from polluting
authorJoe Orton <jorton@apache.org>
Tue, 17 Apr 2012 08:28:06 +0000 (08:28 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 17 Apr 2012 08:28:06 +0000 (08:28 +0000)
  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

index 4ef2d3a59f2118a44c26b3ced3dd1002cce96bb3..966f77a551ca18941600b60b09bbbe64b0cd37a5 100644 (file)
@@ -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,