From fa877975a0b03cef97fdf4350472df77fdb354f6 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Sat, 23 May 2015 13:04:43 +0100 Subject: [PATCH 1/1] 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 --- src/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.1.4