The gnulib manual would also be amended to describe how to use the
module, along the following lines.

You need to add to configure.ac this line:

gl_LINKER_SCRIPT([$srcdir/lib/shishi.vers])

And in Makefile.am add something like this:

if HAVE_LD_VERSION_SCRIPT
libshishi_la_LDFLAGS += -Wl,--version-script=$(srcdir)/shishi.vers
endif

The version script file is documented in the LD manual, but a short
example would be:

SHISHI_0.0 {
  global:
    shishi*;

  local:
    *;
};

The content needs to be adapted to your particular library.

/Simon


Reply via email to