blob: 42cd99a895c5ae5c597c6d9bd87aa61b7e3ba02c [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From aec3b64b0aaea0178b44ea65a204d76696e6a45e Mon Sep 17 00:00:00 2001
2From: Leon Anavi <leon.anavi@konsulko.com>
3Date: Mon, 10 Jan 2022 14:04:28 +0200
4Subject: [PATCH] setup.py: Do not strip debugging symbols
5
6Do not strip debugging symbols from Linux binaries to avoid
7bitbake build errors related to already-stripped.
8
9Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
10---
Andrew Geissler615f2f12022-07-15 14:00:58 -050011 setup.py | 8 +-------
12 1 file changed, 1 insertion(+), 7 deletions(-)
Andrew Geissler595f6302022-01-24 19:11:47 +000013
14diff --git a/setup.py b/setup.py
Andrew Geissler615f2f12022-07-15 14:00:58 -050015index b98963b..d42f07a 100644
Andrew Geissler595f6302022-01-24 19:11:47 +000016--- a/setup.py
17+++ b/setup.py
Andrew Geissler615f2f12022-07-15 14:00:58 -050018@@ -19,13 +19,7 @@ if not dconv_libs:
19 dconv_source_files.extend(glob("./deps/double-conversion/double-conversion/*.cc"))
Andrew Geissler595f6302022-01-24 19:11:47 +000020 dconv_source_files.append("./lib/dconv_wrapper.cc")
21
Andrew Geissler615f2f12022-07-15 14:00:58 -050022-if platform.system() == "Linux" and environ.get("UJSON_BUILD_NO_STRIP", "0") not in (
23- "1",
24- "True",
25-):
26- strip_flags = ["-Wl,--strip-all"]
27-else:
28- strip_flags = []
Andrew Geissler595f6302022-01-24 19:11:47 +000029+strip_flags = []
30
31 module1 = Extension(
32 "ujson",
33--
Andrew Geissler615f2f12022-07-15 14:00:58 -0500342.25.1
Andrew Geissler595f6302022-01-24 19:11:47 +000035