From 3fd06c4659d8066acf5c76c62a496639a326f4f4 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 17 Jun 2026 07:20:02 +0200 Subject: [PATCH] cmake: install libmbedcrypto compat library as a program The libmbedcrypto backward-compatibility library was installed with install(FILES ...), which uses 0644 permissions, so the resulting shared object is not executable. Packaging tools (e.g. rpm) then fail to recognise it as a shared library: no dependency information is generated and debug symbols are not stripped. Install it with install(PROGRAMS ...) instead, matching the 0755 permissions used for ordinary shared libraries. Signed-off-by: Martin Pluskal --- library/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 5436a96d42..7e138b21f5 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -356,7 +356,7 @@ foreach(target IN LISTS tf_psa_crypto_library_targets) libmbedcrypto.so.${MBEDTLS_CRYPTO_SOVERSION} libmbedcrypto.so ) - install(FILES $ + install(PROGRAMS $ DESTINATION ${CMAKE_INSTALL_LIBDIR} RENAME "libmbedcrypto.so.${MBEDTLS_VERSION}" )