Blame SOURCES/mod_fcgid-2.3.9-r1848311.patch

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