diff options
author | Przemyslaw Wrzos <przemyslaw.wrzos@calyptech.com> | 2014-02-18 21:40:07 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-02-19 08:53:59 +0100 |
commit | 99d930e65db24ac1ed5e768324154cc1f10e9eae (patch) | |
tree | ba6ff06743b4a818c7e81d42d8d51152b0e6d288 /package/python3 | |
parent | e51f87b825819986613cff58038b797e9925b25d (diff) |
python, python3: fix to ensure libpython is stripped
The python and python3 builds mark libpython as read-only which
prevents it from being stripped out correctly for the target.
Signed-off-by: Przemyslaw Wrzos <przemyslaw.wrzos@calyptech.com>
Acked-by: Thomas De Schampheleire <thomas.de_schampheleire@alcatel-lucent.com>
Tested-by: Thomas De Schampheleire <thomas.de_schampheleire@alcatel-lucent.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python3')
-rw-r--r-- | package/python3/python3.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 13f53f4f0..880b66e3c 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -131,6 +131,15 @@ endef PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_REMOVE_USELESS_FILES +# +# Make sure libpython gets stripped out on target +# +define PYTHON3_ENSURE_LIBPYTHON_STRIPPED + chmod u+w $(TARGET_DIR)/usr/lib/libpython$(PYTHON3_VERSION_MAJOR)*.so +endef + +PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_ENSURE_LIBPYTHON_STRIPPED + PYTHON3_AUTORECONF = YES define PYTHON3_INSTALL_SYMLINK |