From 58ff49faf5558e5bda5da74bc2b0cd1517f3c9e5 Mon Sep 17 00:00:00 2001 From: stefanjones Date: Wed, 15 Jan 2003 10:44:23 +0000 Subject: [PATCH] Only export the Spice_Init symbol --- src/Makefile.am | 2 +- src/tclsymbols | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/tclsymbols 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: *; +};