mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-02 22:38:01 +00: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
|
@ -168,11 +168,9 @@ add_project_link_arguments(common_ldflags, language: 'c')
|
|||
ldflag = '-Wl,--version-script'
|
||||
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_devices = join_paths(meson.source_root(), 'linker-script-devices.ver')
|
||||
linker_script_settings = join_paths(meson.source_root(), 'linker-script-settings.ver')
|
||||
endif
|
||||
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')
|
||||
|
||||
uuid_dep = dependency('uuid')
|
||||
libelogind_dep = dependency('libelogind', version: '>= 219', required: false)
|
||||
|
|
Loading…
Reference in a new issue