[COMMIT osv master] build: do not strip symlinks

6 views
Skip to first unread message

Commit Bot

unread,
Nov 30, 2023, 12:39:48 AM11/30/23
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

build: do not strip symlinks

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/scripts/manifest_common.py b/scripts/manifest_common.py
--- a/scripts/manifest_common.py
+++ b/scripts/manifest_common.py
@@ -69,7 +69,7 @@ def to_strip(filename):
ff.startswith(osvdir + "/apps")

stripped_filename = filename
- if filename.endswith(".so") and to_strip(filename):
+ if filename.endswith(".so") and not filename.startswith("->") and to_strip(filename):
stripped_filename = filename[:-3] + "-stripped.so"
if not os.path.exists(stripped_filename) \
or (os.path.getmtime(stripped_filename) < \
Reply all
Reply to author
Forward
0 new messages