]> granicus.if.org Git - apache/commitdiff
Use -export-dynamic only when linking an httpd which includes mod_so,
authorJoe Orton <jorton@apache.org>
Thu, 8 Jan 2004 20:47:29 +0000 (20:47 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 8 Jan 2004 20:47:29 +0000 (20:47 +0000)
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

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/mappers/config9.m4
modules/metadata/config.m4

index eb8fa7b9bdab347f4ba21d1fe72565dc276c2100..2018f0c778a4633d4c426f5c3bbf446720303f96 100644 (file)
@@ -44,6 +44,4 @@ APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most, [
   fi
 ])
 
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
 APACHE_MODPATH_FINISH
index 25f7a8509263856670c1f0af1d3ff649ae0f91f6..584e76d9c2b1e8429148fac8f886c94fc428ed96 100644 (file)
@@ -6,6 +6,4 @@ APACHE_MODPATH_INIT(arch/win32)
 
 APACHE_MODULE(isapi, isapi extension support, , , no)
 
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
 APACHE_MODPATH_FINISH
index 9eabf541275ce94128eb1f3048fbe946c102dc24..cdec8c56eb174394d1c750182acd944aef235be1 100644 (file)
@@ -6,6 +6,4 @@ APACHE_MODPATH_INIT(cache)
 
 APACHE_MODULE(file_cache, File cache, , , no)
 
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
 APACHE_MODPATH_FINISH
index 234a7d5e9af4a79a0ffe1ae48fbcbaa9e1f70d66..02c42b15229320b5df9c65f06eee36e67ac09413 100644 (file)
@@ -6,6 +6,4 @@ APACHE_MODPATH_INIT(echo)
 
 APACHE_MODULE(echo, ECHO server, , , no)
 
-APR_ADDTO(LT_LDFLAGS,-export-dynamic)
-
 APACHE_MODPATH_FINISH
index 385dbe3038ce3c7a1bee808fc1081f0c315a5203..89b564cdb13162164cb99eb8092b1071317fb9f5 100644 (file)
@@ -7,8 +7,6 @@ APACHE_MODPATH_INIT(filters)
 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),
   [
index 7113018226e51057d30d6164f03c604283fc1491..f88ce33bff7e858f777c4de3aa7b3e02040eaa9e 100644 (file)
@@ -11,8 +11,6 @@ APACHE_MODULE(info, server information, , , most)
 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.
index adb66ea8da56b4472835da94e30635117878eacf..198a953dc364cf19fd954e22b9a8d3111593ee4b 100644 (file)
@@ -41,6 +41,10 @@ if test "x$enable_so" = "xyes"; then
     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])
index e20e1dd612c53690d801c544c727d2dbdef558ca..4efd4a16830cbd95d895901180fc54f43d687988 100644 (file)
@@ -19,6 +19,4 @@ APACHE_MODULE(usertrack, user-session tracking, , , , [
 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