different symbol loader switch under solaris cc

This commit is contained in:
dwarning 2018-10-15 15:09:08 +02:00
parent ca8481d9fc
commit 1838ca96ff
1 changed files with 20 additions and 0 deletions

View File

@ -319,6 +319,14 @@ if test "x$with_ngshared" != x && test "x$with_ngshared" != xno ; then
has_shcyg=true has_shcyg=true
AC_CHECK_LIB([pthread], [pthread_create]) 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" CFLAGS="$CFLAGS -fvisibility=hidden"
AC_CHECK_LIB([pthread], [pthread_create]) 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.]) AC_DEFINE([IPC_UNIX_SOCKETS], [1], [Client-Server via socket.])
XSPICEDLLIBS="-ldl" 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.]) AC_DEFINE([IPC_UNIX_SOCKETS], [1], [Client-Server via socket.])
XSPICEDLLIBS="-ldl" XSPICEDLLIBS="-ldl"