From 1838ca96ff53ebcef0ded44dc774004cc34c94ab Mon Sep 17 00:00:00 2001 From: dwarning Date: Mon, 15 Oct 2018 15:09:08 +0200 Subject: [PATCH] different symbol loader switch under solaris cc --- configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/configure.ac b/configure.ac index 9859ed9d6..5081f4fb3 100644 --- a/configure.ac +++ b/configure.ac @@ -319,6 +319,14 @@ if test "x$with_ngshared" != x && test "x$with_ngshared" != xno ; then has_shcyg=true AC_CHECK_LIB([pthread], [pthread_create]) ;; + *solaris* ) + if test "x$GCC" = xyes; then + CFLAGS="$CFLAGS -fvisibility=hidden" + else + CFLAGS="$CFLAGS -xldscope=hidden" + fi + AC_CHECK_LIB([pthread], [pthread_create]) + ;; *) CFLAGS="$CFLAGS -fvisibility=hidden" AC_CHECK_LIB([pthread], [pthread_create]) @@ -942,6 +950,18 @@ if test "x$enable_xspice" = xyes; then AC_DEFINE([IPC_UNIX_SOCKETS], [1], [Client-Server via socket.]) XSPICEDLLIBS="-ldl" ;; + *solaris* ) + AC_DEFINE([IPC_UNIX_SOCKETS], [1], [Client-Server via socket.]) + XSPICEDLLIBS="-ldl" + if test -z "$has_shared_module"; then + if test "x$GCC" = xyes; then + CFLAGS="$CFLAGS -fvisibility=hidden" + else + CFLAGS="$CFLAGS -xldscope=hidden" + fi + fi + XSPICEDLLIBS="" + ;; * ) AC_DEFINE([IPC_UNIX_SOCKETS], [1], [Client-Server via socket.]) XSPICEDLLIBS="-ldl"