Add CFLAGS -fvisibility=hidden also when ngspice executable

is made under LINUX: becomes effective when code models are made.
Thus there is no longer any difference between code models
made during compiling shared ngspice or standard ngspice.
This commit is contained in:
Holger Vogt 2018-07-07 14:29:44 +02:00
parent d9d47bd823
commit fe8126865a
1 changed files with 3 additions and 0 deletions

View File

@ -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=""