You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2018/12/06 13:47:50 UTC
svn commit: r1848311 - in /httpd/mod_fcgid/trunk/modules/fcgid:
Makefile.apxs config.m4 modules.mk.apxs
Author: jorton
Date: Thu Dec 6 13:47:50 2018
New Revision: 1848311
URL: http://svn.apache.org/viewvc?rev=1848311&view=rev
Log:
Hide unnecessary symbol exports with libtool builds.
Modified:
httpd/mod_fcgid/trunk/modules/fcgid/Makefile.apxs
httpd/mod_fcgid/trunk/modules/fcgid/config.m4
httpd/mod_fcgid/trunk/modules/fcgid/modules.mk.apxs
Modified: httpd/mod_fcgid/trunk/modules/fcgid/Makefile.apxs
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/Makefile.apxs?rev=1848311&r1=1848310&r2=1848311&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/Makefile.apxs (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/Makefile.apxs Thu Dec 6 13:47:50 2018
@@ -16,6 +16,7 @@ fcgid_srcdir=../..
builddir=.
srcdir=.
+MOD_FCGID_LDADD = -export-symbols-regex fcgid_module
CLEAN_TARGETS = *.loT
include $(exp_installbuilddir)/special.mk
Modified: httpd/mod_fcgid/trunk/modules/fcgid/config.m4
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/config.m4?rev=1848311&r1=1848310&r2=1848311&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/config.m4 (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/config.m4 Thu Dec 6 13:47:50 2018
@@ -43,6 +43,11 @@ APACHE_MODULE(fcgid, [FastCGI support (m
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
Modified: httpd/mod_fcgid/trunk/modules/fcgid/modules.mk.apxs
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/modules.mk.apxs?rev=1848311&r1=1848310&r2=1848311&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/modules.mk.apxs (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/modules.mk.apxs Thu Dec 6 13:47:50 2018
@@ -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