mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 14:00:05 +01:00
build/meson: fix build without have_version_script
We always need to declare the linker_script_* variables, because they are used (unconditionally) as a dependency, even without have_version_script.
This commit is contained in:
parent
3d7aa8483e
commit
ec016f6b43
1 changed files with 3 additions and 5 deletions
|
|
@ -168,11 +168,9 @@ add_project_link_arguments(common_ldflags, language: 'c')
|
||||||
ldflag = '-Wl,--version-script'
|
ldflag = '-Wl,--version-script'
|
||||||
have_version_script = host_machine.system().contains('linux') and cc.has_argument(ldflag)
|
have_version_script = host_machine.system().contains('linux') and cc.has_argument(ldflag)
|
||||||
|
|
||||||
if have_version_script
|
linker_script_binary = join_paths(meson.source_root(), 'linker-script-binary.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_devices = join_paths(meson.source_root(), 'linker-script-devices.ver')
|
linker_script_settings = join_paths(meson.source_root(), 'linker-script-settings.ver')
|
||||||
linker_script_settings = join_paths(meson.source_root(), 'linker-script-settings.ver')
|
|
||||||
endif
|
|
||||||
|
|
||||||
uuid_dep = dependency('uuid')
|
uuid_dep = dependency('uuid')
|
||||||
libelogind_dep = dependency('libelogind', version: '>= 219', required: false)
|
libelogind_dep = dependency('libelogind', version: '>= 219', required: false)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue