From fe8126865afea1553443f131ad28adead8071ab8 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 7 Jul 2018 14:29:44 +0200 Subject: [PATCH] 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. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) 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=""