From 99d930e65db24ac1ed5e768324154cc1f10e9eae Mon Sep 17 00:00:00 2001 From: Przemyslaw Wrzos Date: Tue, 18 Feb 2014 21:40:07 +0100 Subject: 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 Acked-by: Thomas De Schampheleire Tested-by: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/python/python.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'package/python/python.mk') diff --git a/package/python/python.mk b/package/python/python.mk index 3b0a4ddfd5..94765cbb84 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -160,6 +160,15 @@ endef PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_REMOVE_USELESS_FILES +# +# Make sure libpython gets stripped out on target +# +define PYTHON_ENSURE_LIBPYTHON_STRIPPED + chmod u+w $(TARGET_DIR)/usr/lib/libpython$(PYTHON_VERSION_MAJOR)*.so +endef + +PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_ENSURE_LIBPYTHON_STRIPPED + PYTHON_AUTORECONF = YES # Provided to other packages -- cgit v1.2.3