~tomleb/meson_version_script

0c5843a2765a7a00e9367422e08f93dd997ab9bf — Tom Lebreux 1 year, 8 months ago c04bbf0
Add README.md
1 files changed, 26 insertions(+), 0 deletions(-)

A README.md
A README.md => README.md +26 -0
@@ 0,0 1,26 @@
# Meson Version Script

This is an example repository that demonstrates the use of a version script file
to limit the visibility of symbols for a dynamic library.

This repository is used in this blog post: [Symbols and Symbols File]

[Symbols and Symbols File]: http://blog.tomlebreux.com/2020/02/13/symbols-file.html

# Build

You can build the example by running the following commands.

```sh
meson build
ninja -C build
```

# Symbols

You can see the exported symbols by running the `nm` command. In this case, only
symbols with a prefix of `foo` are globally exported.

```sh
nm ./build/libfoo.so
```