aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-23 09:54:49 +0100
committerGitHub <noreply@github.com>2018-02-23 09:54:49 +0100
commitbd9583a7e8108ab4fd31fc5ab6f7c1552258fa6e (patch)
treee4c88ad6280997d893f0e4aaa98b48fb3bcf3678 /meson.build
parent1c1b5b1b17519e945097e9ca9a8f7b5a1669a4fe (diff)
parent6ba1128a72c3779affd82719a19be643a33490a0 (diff)
Merge pull request #652 from agx/symbols-file
Add symbols file
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 2fc78d33..d5ae7863 100644
--- a/meson.build
+++ b/meson.build
@@ -140,6 +140,8 @@ wlr_deps += [
math,
]
+symbols_file = 'wlroots.syms'
+symbols_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), symbols_file)
lib_wlr = library(
meson.project_name(),
version: '.'.join(so_version),
@@ -147,6 +149,7 @@ lib_wlr = library(
dependencies: wlr_deps,
include_directories: wlr_inc,
install: true,
+ link_args : symbols_flag,
)
wlroots = declare_dependency(