mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
![]() We use a linker version script "NetworkManager.ver", to hide symbols from NetworkManager that are not used. That is important due to our habit of using internal helper libraries that we link statically everywhere, without handpicking the symbols we actually need. We want the tooling to get rid of unnecessary symbols. However, NetworkManager loads shared libraries for settings and device plugins. These libraries require symbols from the NetworkManager binary, but which one depends on build options. Hence, we also generate "NetworkManager.ver" by the "tools/create-exports-NetworkManager.sh" script. For that the script uses "nm" to find symbols that are undefined in the plugin libraries but defined in NetworkManager. With autotools the script looked at "./src/.libs/libNetworkManager.a" to find the present symbols. Note that for meson that already didn't work, and we build instead an intermediate NetworkManager binary first (with all symbols exposed). With LTO, "nm" doesn't find all symbols in "./src/.libs/libNetworkManager.a", and consequently they are not exported and dropped/hidden. This also causes unit tests to fail with LTO, because our test script "tools/check-exports.sh" catches such bugs. Fix that by also with autotools generate a complete "NetworkManager-all-sym" binary that is used to generate "NetworkManager.ver", before rebuilding "NetworkManager" again. |
||
---|---|---|
.. | ||
check-config-options.sh | ||
check-docs.sh | ||
check-exports.sh | ||
check-settings-docs.sh | ||
create-exports-NetworkManager.sh | ||
debug-helper.py | ||
enums-to-docbook.pl | ||
generate-docs-nm-property-infos.pl | ||
generate-docs-nm-settings-docs-gir.py | ||
generate-docs-nm-settings-docs-merge.py | ||
meson-post-install.sh | ||
run-nm-test.sh | ||
test-build.sh | ||
test-networkmanager-service.py | ||
test-sudo-wrapper.sh |