diff options
Diffstat (limited to 'SoftHSMv2/m4/acx_visibility.m4')
-rw-r--r-- | SoftHSMv2/m4/acx_visibility.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/SoftHSMv2/m4/acx_visibility.m4 b/SoftHSMv2/m4/acx_visibility.m4 new file mode 100644 index 0000000..589a72e --- /dev/null +++ b/SoftHSMv2/m4/acx_visibility.m4 @@ -0,0 +1,14 @@ +AC_DEFUN([ACX_VISIBILITY],[ + AC_ARG_ENABLE( + [visibility], + [AS_HELP_STRING([--disable-visibility],[disable hidden visibilty link mode @<:@enabled@:>@])], + [enable_visibility="${enableval}"], + [enable_visibility="yes"] + ) + if test "${enable_visibility}" = "yes"; then + CFLAGS="${CFLAGS} -fvisibility=hidden" + CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" + AC_DEFINE(CRYPTOKI_VISIBILITY, 1, + [Define to default visibility of PKCS@%:@11 entry points]) + fi +]) |