From 5875b400ee051852c58f3c2738fc2607b76b0549 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 7 Nov 2023 16:46:36 +0000 Subject: [PATCH] * modules/dav/fs/config6.m4: Set _LDADD so that mod_dav_fs-internal functions are not exported in the built DSO. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913654 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/fs/config6.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/dav/fs/config6.m4 b/modules/dav/fs/config6.m4 index ee0b382f15c..71afa24c2af 100644 --- a/modules/dav/fs/config6.m4 +++ b/modules/dav/fs/config6.m4 @@ -20,4 +20,10 @@ esac APACHE_MODULE(dav_fs, DAV provider for the filesystem. --enable-dav also enables mod_dav_fs., $dav_fs_objects, , $dav_fs_enable,,dav) +if test "x$enable_dav_fs" = "xshared"; then + # The only symbol which needs to be exported is the module + # structure, so ask libtool to hide everything else: + APR_ADDTO(MOD_DAV_FS_LDADD, [-export-symbols-regex dav_fs_module]) +fi + APACHE_MODPATH_FINISH