diff --git a/configure.ac b/configure.ac index 2352e5d68..824e35a67 100644 --- a/configure.ac +++ b/configure.ac @@ -934,6 +934,9 @@ if test "x$enable_xspice" = xyes; then * ) AC_DEFINE([IPC_UNIX_SOCKETS], [1], [Client-Server via socket.]) XSPICEDLLIBS="-ldl" + if test -z "$has_shared_module"; then + CFLAGS="$CFLAGS -fvisibility=hidden" + fi ;; esac XSPICEINIT=""