Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -1,7 +1,8 @@ nano.so nano.o +nano.syms Makefile pkgIndex.tcl aclocal.m4 config.guess config.sub Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -1,8 +1,8 @@ CC := @CC@ CFLAGS := @CFLAGS@ @SHOBJFLAGS@ -CPPFLAGS := -I./tweetnacl/ -I./blake2b/ -DSUPERCOP=1 @CPPFLAGS@ @SHOBJCPPFLAGS@ +CPPFLAGS := -I./tweetnacl/ -I./blake2b/ -DSUPERCOP=1 @CPPFLAGS@ @SHOBJCPPFLAGS@ @DEFS@ LDFLAGS := @LDFLAGS@ LIBS := @LIBS@ SHOBJLDFLAGS := @SHOBJLDFLAGS@ export CC CFLAGS CPPFLAGS @@ -9,10 +9,12 @@ all: @EXTENSION_TARGET@ ifeq (@TCLEXT_BUILD@,shared) @EXTENSION_TARGET@: tweetnacl/tweetnacl.o blake2b/blake2b.o nano.o Makefile $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o @EXTENSION_TARGET@ nano.o tweetnacl/tweetnacl.o blake2b/blake2b.o $(LIBS) + -@WEAKENSYMS@ @EXTENSION_TARGET@ + -@REMOVESYMS@ @EXTENSION_TARGET@ else @EXTENSION_TARGET@: tweetnacl/tweetnacl.o blake2b/blake2b.o nano.o Makefile $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o @EXTENSION_TARGET@ nano.o tweetnacl/tweetnacl.o blake2b/blake2b.o $(LIBS) endif Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -67,7 +67,10 @@ else DC_SYNC_RPATH([yes]) fi fi +dnl Setup a stable ABI +DC_SETUP_STABLE_API(nano.vers, nano.syms) + dnl Produce output -AC_OUTPUT(Makefile pkgIndex.tcl) +AC_OUTPUT(Makefile pkgIndex.tcl nano.syms) ADDED nano.syms.in Index: nano.syms.in ================================================================== --- /dev/null +++ nano.syms.in @@ -0,0 +1,1 @@ +@SYMPREFIX@Nano_Init ADDED nano.vers Index: nano.vers ================================================================== --- /dev/null +++ nano.vers @@ -0,0 +1,6 @@ +{ + global: + Nano_Init; + local: + *; +};