Commit 4f1d6895 authored by Guido Gunther's avatar Guido Gunther

Add symbols file to link step

This makes sure we only export symbols prefixed with hdy_ for programs
to use.
parent 14417306
LIBHANDY_0_0_0 {
global:
hdy_*;
local:
*;
};
......@@ -86,6 +86,10 @@ libhandy_deps = [
cc.find_library('rt', required: false),
]
libhandy_symbols_file = 'libhandy.syms'
libhandy_symbols_flag = '-Wl,--version-script,@0@/@1@'.format(meson.source_root(),
libhandy_symbols_file)
libhandy_args = []
libhandy = shared_library(
'handy-' + apiversion,
......@@ -96,6 +100,7 @@ libhandy = shared_library(
dependencies: libhandy_deps,
include_directories: [ root_inc, src_inc ],
install: true,
link_args: libhandy_symbols_flag,
)
libhandy_dep = declare_dependency(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment