[elbe-devel] [PATCH] elbepack: elbeproject: include static libraries in SDK

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Nov 13 09:59:58 CET 2024


It's completely valid to also link to static libraries in addition to
shared ones.
While most libraries (both shared and static should be in
/usr/lib/$TRIPLET this may not be the case for all of them.

Reported-by: Kurt Kanzenbach <kurt.kanzenbach at linutronix.de>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
Cc: Alexander Gieringer <alexander.gieringer at linutronix.de>

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/elbeproject.py               | 3 +++
 newsfragments/+staticlibs.feature.rst | 1 +
 2 files changed, 4 insertions(+)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 2eb4ac6a72e885e3f20cbf8dca4165a935276cd3..65b56d993a42241909617d9fe98c3ec5f2f4e1c8 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -214,15 +214,18 @@ class ElbeProject:
             './usr/bin/gdbserver',
             './usr/sbin/ldconfig',
             './etc/ld.so.conf*',
+            './opt/*/lib/*.a',
             './opt/*/lib/*.so',
             './opt/*lib/*.so.*',
             './opt/*/include',
             './opt/*/lib/' + triplet,
             './opt/*/include/' + triplet,
+            './lib/*.a',
             './lib/*.so',
             './lib/*.so.*',
             './lib/' + triplet,
             './usr/lib/debug/.build-id/*/*.debug',
+            './usr/lib/*.a',
             './usr/lib/*.so',
             './usr/lib/*.so.*',
             './usr/lib/' + triplet]
diff --git a/newsfragments/+staticlibs.feature.rst b/newsfragments/+staticlibs.feature.rst
new file mode 100644
index 0000000000000000000000000000000000000000..9a9e1e6ae3030aca6853d62e4d876ff97f68158e
--- /dev/null
+++ b/newsfragments/+staticlibs.feature.rst
@@ -0,0 +1 @@
+Ship static libraries as part of SDK.

---
base-commit: fd48f02889d0de2714489df27f43429dbe86260d
change-id: 20241113-sdk-static-libs-18d5e682efca

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list