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 = [ ...@@ -86,6 +86,10 @@ libhandy_deps = [
cc.find_library('rt', required: false), 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_args = []
libhandy = shared_library( libhandy = shared_library(
'handy-' + apiversion, 'handy-' + apiversion,
...@@ -96,6 +100,7 @@ libhandy = shared_library( ...@@ -96,6 +100,7 @@ libhandy = shared_library(
dependencies: libhandy_deps, dependencies: libhandy_deps,
include_directories: [ root_inc, src_inc ], include_directories: [ root_inc, src_inc ],
install: true, install: true,
link_args: libhandy_symbols_flag,
) )
libhandy_dep = declare_dependency( 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