diff --git a/modules/fcgid/Makefile.apxs b/modules/fcgid/Makefile.apxs index 500449b..771adda 100644 --- a/modules/fcgid/Makefile.apxs +++ b/modules/fcgid/Makefile.apxs @@ -16,6 +16,7 @@ fcgid_srcdir=../.. builddir=. srcdir=. +MOD_FCGID_LDADD = -export-symbols-regex fcgid_module CLEAN_TARGETS = *.loT include $(exp_installbuilddir)/special.mk diff --git a/modules/fcgid/config.m4 b/modules/fcgid/config.m4 index eb8f67f..cc488b4 100644 --- a/modules/fcgid/config.m4 +++ b/modules/fcgid/config.m4 @@ -43,6 +43,11 @@ APACHE_MODULE(fcgid, [FastCGI support (mod_fcgid)], $fcigd_objs, , no, [ AC_CHECK_HEADERS(sys/mman.h) AC_CHECK_HEADERS(sys/mutex.h) AC_CHECK_HEADERS(sys/shm.h) + if test "x$enable_fcgid" = "xshared"; then + # The only symbol which needs to be exported is the module + # structure, so ask libtool to hide everything else: + APR_ADDTO(MOD_FCGID_LDADD, [-export-symbols-regex fcgid_module]) + fi ]) dnl # end of module specific part diff --git a/modules/fcgid/modules.mk.apxs b/modules/fcgid/modules.mk.apxs index 51ad05d..b6c032b 100644 --- a/modules/fcgid/modules.mk.apxs +++ b/modules/fcgid/modules.mk.apxs @@ -17,7 +17,7 @@ # this is used/needed by the APACHE2 build system # 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 - $(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 + $(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) DISTCLEAN_TARGETS = modules.mk static = shared = mod_fcgid.la