diff options
author | Thomas Haller <thaller@redhat.com> | 2018-01-11 12:34:40 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-01-11 12:46:01 +0100 |
commit | 34cb6f9877a9b7a7032899dbccca1def88da4191 (patch) | |
tree | e36cd40bbde4ae06d9f4225d3fb7b3ec7f115c20 /meson.build | |
parent | 98b46537fa1a91941b5f7a8252b3fce85554a855 (diff) | |
download | NetworkManager-34cb6f9877a9b7a7032899dbccca1def88da4191.tar.gz |
build/meson: use variables for ldflags and linker-script
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 5a565e5a5c..a0722f820a 100644 --- a/meson.build +++ b/meson.build @@ -165,10 +165,14 @@ endif add_project_arguments(common_flags, language: 'c') add_project_link_arguments(common_ldflags, language: 'c') -linker_script_binary = join_paths(meson.source_root(), 'linker-script-binary.ver') -linker_script_devices = join_paths(meson.source_root(), 'linker-script-devices.ver') +linker_script_binary = join_paths(meson.source_root(), 'linker-script-binary.ver') +linker_script_devices = join_paths(meson.source_root(), 'linker-script-devices.ver') linker_script_settings = join_paths(meson.source_root(), 'linker-script-settings.ver') +ldflags_linker_script_binary = [ '-Wl,--version-script,@0@'.format(linker_script_binary) ] +ldflags_linker_script_devices = [ '-Wl,--version-script,@0@'.format(linker_script_devices) ] +ldflags_linker_script_settings = [ '-Wl,--version-script,@0@'.format(linker_script_settings) ] + uuid_dep = dependency('uuid') libelogind_dep = dependency('libelogind', version: '>= 219', required: false) libudev_dep = dependency('libudev', version: '>= 175') |