not when linking modules or support programs.
* modules/aaa/config.m4, modules/arch/win32/config.m4,
modules/cache/config.m4, modules/echo/config.m4,
modules/filters/config.m4, modules/generators/config5.m4,
modules/metadata/config.m4: Don't add -export-dynamic to LT_LDFLAGS.
* modules/mappers/config9.m4: Add -export-dynamic to HTTPD_LDFLAGS
when mod_so is enabled.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102235
13f79535-47bb-0310-9956-
ffa450edef68
fi
])
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
APACHE_MODPATH_FINISH
APACHE_MODULE(isapi, isapi extension support, , , no)
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
APACHE_MODPATH_FINISH
APACHE_MODULE(file_cache, File cache, , , no)
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
APACHE_MODPATH_FINISH
APACHE_MODULE(echo, ECHO server, , , no)
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
APACHE_MODPATH_FINISH
APACHE_MODULE(ext_filter, external filter module, , , most)
APACHE_MODULE(include, Server Side Includes, , , yes)
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
APACHE_MODULE(deflate, Deflate transfer encoding support, , , most, [
AC_ARG_WITH(z, APACHE_HELP_STRING(--with-z=DIR,use a specific zlib library),
[
APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no, [
other_targets=suexec ] )
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild"; then
# if we are using a threaded MPM, we will get better performance with
# mod_cgid, so make it the default.
enable_so="static"
fi
+if test "x$enable_so" = "xstatic"; then
+ APR_ADDTO(HTTPD_LDFLAGS, [-export-dynamic])
+fi
+
if test "$sharedobjs" = "yes"; then
if test $ac_cv_define_APR_HAS_DSO = "no"; then
AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so cannot be built])
APACHE_MODULE(unique_id, per-request unique ids)
APACHE_MODULE(setenvif, basing ENV vars on headers, , , yes)
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
APACHE_MODPATH_FINISH