From: Joe Orton Date: Sat, 23 May 2015 12:04:43 +0000 (+0100) Subject: Export only the symbol named auth_gssapi_module X-Git-Tag: v1.3.0~40 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_gssapi.git;a=commitdiff_plain;h=fa877975a0b03cef97fdf4350472df77fdb354f6;hp=0fb1b69e4a03b282b9df2255c153e5d3860e24c0 Export only the symbol named auth_gssapi_module The only entry point into the module DSO is the module structure itself; use libtool's export-symbols linker trick to hide all the other global symbols, which otherwise are potentially visible outside the module itself (SEAL_* etc). Reviewed-by: Simo Sorce --- diff --git a/src/Makefile.am b/src/Makefile.am index 01a1220..e2b0148 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,7 +12,8 @@ mod_auth_gssapi_la_CFLAGS = \ mod_auth_gssapi_la_LDFLAGS = \ $(MAG_LIBS) \ -avoid-version \ - -module + -module \ + -export-symbols-regex auth_gssapi_module install-exec-local: if test ! -d ${APXS_LIBEXECDIR}; then mkdir -p ${APXS_LIBEXECDIR}; fi