diff options
| author | Thomas Haller <thaller@redhat.com> | 2018-01-10 10:29:11 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2018-01-10 12:31:44 +0100 |
| commit | 349861ceec4085fd1f0ff0af8bcf873aa15ba611 (patch) | |
| tree | 6543ad02add282e0c3c0a62d632d607f93659eaa /src | |
| parent | ec016f6b43f4f7727944d67e358e7dc01ee2e42d (diff) | |
| download | NetworkManager-349861ceec4085fd1f0ff0af8bcf873aa15ba611.tar.gz | |
build/meson: unconditionally use linker version scripts
We also unconditionally use them with autotools.
Also, the detection for have_version_script does
not seem correct to me. At least, it didn't work
with clang.
Diffstat (limited to 'src')
| -rw-r--r-- | src/devices/adsl/meson.build | 7 | ||||
| -rw-r--r-- | src/devices/bluetooth/meson.build | 7 | ||||
| -rw-r--r-- | src/devices/ovs/meson.build | 7 | ||||
| -rw-r--r-- | src/devices/team/meson.build | 7 | ||||
| -rw-r--r-- | src/devices/wifi/meson.build | 7 | ||||
| -rw-r--r-- | src/devices/wwan/meson.build | 14 | ||||
| -rw-r--r-- | src/dhcp/meson.build | 7 | ||||
| -rw-r--r-- | src/meson.build | 11 | ||||
| -rw-r--r-- | src/ppp/meson.build | 7 | ||||
| -rw-r--r-- | src/settings/plugins/ibft/meson.build | 7 | ||||
| -rw-r--r-- | src/settings/plugins/ifcfg-rh/meson.build | 7 | ||||
| -rw-r--r-- | src/settings/plugins/ifupdown/meson.build | 7 |
12 files changed, 40 insertions, 55 deletions
diff --git a/src/devices/adsl/meson.build b/src/devices/adsl/meson.build index bca488e50f..227f67f62c 100644 --- a/src/devices/adsl/meson.build +++ b/src/devices/adsl/meson.build @@ -9,10 +9,9 @@ deps = [ nm_dep ] -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_devices) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_devices), +] libnm_device_plugin_adsl = shared_module( 'nm-device-plugin-adsl', diff --git a/src/devices/bluetooth/meson.build b/src/devices/bluetooth/meson.build index e1ce74b316..85d29c7621 100644 --- a/src/devices/bluetooth/meson.build +++ b/src/devices/bluetooth/meson.build @@ -14,10 +14,9 @@ deps = [ nm_dep ] -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_devices) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_devices), +] if enable_bluez5_dun sources += files('nm-bluez5-dun.c') diff --git a/src/devices/ovs/meson.build b/src/devices/ovs/meson.build index 64d98dfe33..c867e17b5a 100644 --- a/src/devices/ovs/meson.build +++ b/src/devices/ovs/meson.build @@ -12,10 +12,9 @@ deps = [ nm_dep ] -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_devices) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_devices), +] libnm_device_plugin_ovs = shared_module( 'nm-device-plugin-ovs', diff --git a/src/devices/team/meson.build b/src/devices/team/meson.build index 0853c610d0..84782890e8 100644 --- a/src/devices/team/meson.build +++ b/src/devices/team/meson.build @@ -10,10 +10,9 @@ deps = [ nm_dep ] -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_devices) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_devices), +] libnm_device_plugin_team = shared_module( 'nm-device-plugin-team', diff --git a/src/devices/wifi/meson.build b/src/devices/wifi/meson.build index a733b379c8..a6801f055e 100644 --- a/src/devices/wifi/meson.build +++ b/src/devices/wifi/meson.build @@ -21,10 +21,9 @@ deps = [ nm_dep ] -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_devices) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_devices), +] libnm_device_plugin_wifi = shared_module( 'nm-device-plugin-wifi', diff --git a/src/devices/wwan/meson.build b/src/devices/wwan/meson.build index e571cf94f8..70f6977775 100644 --- a/src/devices/wwan/meson.build +++ b/src/devices/wwan/meson.build @@ -16,10 +16,9 @@ endif symbol_name = join_paths(meson.current_source_dir(), 'libnm-wwan.ver') -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(symbol_name) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(symbol_name), +] libnm_wwan = shared_module( 'nm-wwan', @@ -51,10 +50,9 @@ sources = files( deps += libnmdbus_dep -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_devices) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_devices), +] libnm_device_plugin_wwan = shared_module( 'nm-device-plugin-wwan', diff --git a/src/dhcp/meson.build b/src/dhcp/meson.build index a41aac46a1..a08ca7653d 100644 --- a/src/dhcp/meson.build +++ b/src/dhcp/meson.build @@ -6,10 +6,9 @@ cflags = [ '-DNMRUNDIR="@0@"'.format(nm_pkgrundir), ] -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_binary) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_binary), +] executable( name, diff --git a/src/meson.build b/src/meson.build index df197bd28f..b3d7f333e0 100644 --- a/src/meson.build +++ b/src/meson.build @@ -232,9 +232,7 @@ symbol_map = custom_target( command: [create_exports_networkmanager, '--called-from-make', '@INPUT@'] ) -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(symbol_map) -endif +ldflags += '-Wl,--version-script,@0@'.format(symbol_map) ''' network_manager = executable( @@ -257,10 +255,9 @@ deps = [ nm_core_dep ] -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_binary) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_binary), +] name = 'nm-iface-helper' diff --git a/src/ppp/meson.build b/src/ppp/meson.build index fc6a319670..4c512e7604 100644 --- a/src/ppp/meson.build +++ b/src/ppp/meson.build @@ -28,10 +28,9 @@ deps = [ symbol_map = join_paths(meson.current_source_dir(), 'nm-ppp-plugin.ver') -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(symbol_map) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(symbol_map), +] core_plugins += shared_module( name, diff --git a/src/settings/plugins/ibft/meson.build b/src/settings/plugins/ibft/meson.build index 12f0acba6d..ace2f72a5c 100644 --- a/src/settings/plugins/ibft/meson.build +++ b/src/settings/plugins/ibft/meson.build @@ -17,10 +17,9 @@ sources = files( 'nms-ibft-plugin.c' ) -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_settings) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_settings), +] libnm_settings_plugin_ibft = shared_module( name, diff --git a/src/settings/plugins/ifcfg-rh/meson.build b/src/settings/plugins/ifcfg-rh/meson.build index 2d46fc45d0..eab51c0c0e 100644 --- a/src/settings/plugins/ifcfg-rh/meson.build +++ b/src/settings/plugins/ifcfg-rh/meson.build @@ -46,10 +46,9 @@ libnms_ifcfg_rh_core = static_library( sources = [dbus_sources] + files('nms-ifcfg-rh-connection.c') -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_settings) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_settings), +] libnm_settings_plugin_ifcfg_rh = shared_module( 'nm-settings-plugin-ifcfg-rh', diff --git a/src/settings/plugins/ifupdown/meson.build b/src/settings/plugins/ifupdown/meson.build index 9800f58887..1dc875a645 100644 --- a/src/settings/plugins/ifupdown/meson.build +++ b/src/settings/plugins/ifupdown/meson.build @@ -22,10 +22,9 @@ sources = files( 'nms-ifupdown-plugin.c' ) -ldflags = [] -if have_version_script - ldflags += '-Wl,--version-script,@0@'.format(linker_script_settings) -endif +ldflags = [ + '-Wl,--version-script,@0@'.format(linker_script_settings), +] libnm_settings_plugin_ifupdown = shared_module( 'nm-settings-plugin-ifupdown', |
