diff --git a/src/Makefile.am b/src/Makefile.am index 26dace547..5f1289891 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -202,7 +202,7 @@ tclspice.o: tclspice.c $(COMPILE) -c -fpic tclspice.c -DTCLSPICE_version="\"$(TCLSPICE_VERSION)\"" libspice.so: $(ngspice_OBJECTS) $(LIBSPICE_OBJS) $(ngspice_DEPENDENCIES) - $(LINK) $(ngspice_LDFLAGS) $(ngspice_OBJECTS) $(ngspice_LDADD) $(LIBS) $(LIBSPICE_OBJS) -shared -lpthread + $(LINK) $(ngspice_LDFLAGS) $(ngspice_OBJECTS) $(ngspice_LDADD) $(LIBS) $(LIBSPICE_OBJS) -shared -lpthread -Wl,--version-script tclsymbols if test -f .libs/$@ ; then \ mv .libs/$@ ./ ;\ rmdir .libs ;\ diff --git a/src/tclsymbols b/src/tclsymbols new file mode 100644 index 000000000..9f03b6347 --- /dev/null +++ b/src/tclsymbols @@ -0,0 +1,4 @@ +{ + global: Spice_Init; + local: *; +};