* modules/md/config2.m4: Only export "md_module" symbol
for a DSO build.
@@ -182,6 +182,9 @@ APACHE_MODULE(md, [Managed Domain handling], $md_objs, , most, [
AC_CHECK_FUNCS([arc4random_buf],
[APR_ADDTO(MOD_CPPFLAGS, ["-DMD_HAVE_ARC4RANDOM"])], [])
+ if test "x$enable_md" = "xshared"; then
+ APR_ADDTO(MOD_MD_LDADD, [-export-symbols-regex md_module])
+ fi
])
dnl # end of module specific part
