From 04bb8f8862632020e44c8ed305976c86f21b919e Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Fri, 21 Jan 2011 17:27:23 +0800 Subject: [PATCH] emacs, strip binary after build the 'intall' try to using HOST strip not cross_strip. we should set INSTALL_STRIP="-s --strip-program=$(STRIP) but emacs Makefile using "INSTALL_STRIP" in different make level I can not find a better way to pass --strip-program to all level works. --- emacs/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/Makefile b/emacs/Makefile index 166f482..b0a1fdd 100644 --- a/emacs/Makefile +++ b/emacs/Makefile @@ -154,13 +154,14 @@ endef define Build/Install sed -ie 's;./src/emacs\( --version\);$(STAGING_DIR_HOST)/bin/emacs \1;g' \ $(PKG_BUILD_DIR)/Makefile - $(call Build/Install/Default,install-arch-indep install-arch-dep install-leim INSTALL_STRIP=-s "MFLAGS=-o test-distrib") + $(call Build/Install/Default,install-arch-indep install-arch-dep install-leim "MFLAGS=-o test-distrib") $(INSTALL_DATA) ./files/site-start.el $(PKG_INSTALL_DIR)/usr/share/emacs/$(PKG_VERSION)/site-lisp endef define Package/emacs/install $(INSTALL_DIR) $(1)/usr cp -r $(PKG_INSTALL_DIR)/usr/{bin,lib} $(1)/usr + (cd $(1)/usr/bin/; file * | grep "not stripped" | cut -d ":" -f1 | xargs $(STRIP)) endef define Package/emacs-data/install