b4781f
# ./pullrev.sh 1848311
b4781f
http://svn.apache.org/viewvc?view=revision&revision=1848311
b4781f
b4781f
https://bugzilla.redhat.com/show_bug.cgi?id=1655035
b4781f
b4781f
--- mod_fcgid-2.3.9/modules/fcgid/config.m4
b4781f
+++ mod_fcgid-2.3.9/modules/fcgid/config.m4
b4781f
@@ -43,6 +43,11 @@
b4781f
     AC_CHECK_HEADERS(sys/mman.h)
b4781f
     AC_CHECK_HEADERS(sys/mutex.h)
b4781f
     AC_CHECK_HEADERS(sys/shm.h)
b4781f
+    if test "x$enable_fcgid" = "xshared"; then
b4781f
+       # The only symbol which needs to be exported is the module
b4781f
+       # structure, so ask libtool to hide everything else:
b4781f
+       APR_ADDTO(MOD_FCGID_LDADD, [-export-symbols-regex fcgid_module])
b4781f
+    fi
b4781f
 ])
b4781f
 
b4781f
 dnl #  end of module specific part
b4781f
--- mod_fcgid-2.3.9/modules/fcgid/Makefile.apxs
b4781f
+++ mod_fcgid-2.3.9/modules/fcgid/Makefile.apxs
b4781f
@@ -16,6 +16,7 @@
b4781f
 builddir=.
b4781f
 srcdir=.
b4781f
 
b4781f
+MOD_FCGID_LDADD = -export-symbols-regex fcgid_module
b4781f
 CLEAN_TARGETS = *.loT
b4781f
 include $(exp_installbuilddir)/special.mk
b4781f
 
b4781f
--- mod_fcgid-2.3.9/modules/fcgid/modules.mk.apxs
b4781f
+++ mod_fcgid-2.3.9/modules/fcgid/modules.mk.apxs
b4781f
@@ -17,7 +17,7 @@
b4781f
 # this is used/needed by the APACHE2 build system
b4781f
 #
b4781f
 mod_fcgid.la: mod_fcgid.slo fcgid_bridge.slo fcgid_conf.slo fcgid_pm_main.slo fcgid_protocol.slo fcgid_spawn_ctl.slo  fcgid_proctbl_unix.slo fcgid_pm_unix.slo fcgid_proc_unix.slo fcgid_bucket.slo fcgid_filter.slo fcgid_mutex_unix.slo
b4781f
-	$(SH_LINK) -rpath $(libexecdir) -module -avoid-version mod_fcgid.lo fcgid_bridge.lo fcgid_conf.lo fcgid_pm_main.lo fcgid_protocol.lo fcgid_spawn_ctl.lo  fcgid_proctbl_unix.lo fcgid_pm_unix.lo fcgid_proc_unix.lo fcgid_bucket.lo fcgid_filter.lo fcgid_mutex_unix.lo
b4781f
+	$(SH_LINK) -rpath $(libexecdir) -module -avoid-version mod_fcgid.lo fcgid_bridge.lo fcgid_conf.lo fcgid_pm_main.lo fcgid_protocol.lo fcgid_spawn_ctl.lo  fcgid_proctbl_unix.lo fcgid_pm_unix.lo fcgid_proc_unix.lo fcgid_bucket.lo fcgid_filter.lo fcgid_mutex_unix.lo $(MOD_FCGID_LDADD)
b4781f
 DISTCLEAN_TARGETS = modules.mk
b4781f
 static =
b4781f
 shared =  mod_fcgid.la