diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 9af384712a..a9821d9a33 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -255,6 +255,7 @@ define PYTHON3_CREATE_PYC_FILES $(if $(VERBOSE),,-q) \ $(if $(BR2_PACKAGE_PYTHON3_PYC_ONLY),-b) \ -s $(TARGET_DIR) \ + -p / \ $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) endef