mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-26 11:03:08 +02:00
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.
This commit is contained in:
parent
404b3fdb56
commit
04bb8f8862
@ -154,13 +154,14 @@ endef
|
|||||||
define Build/Install
|
define Build/Install
|
||||||
sed -ie 's;./src/emacs\( --version\);$(STAGING_DIR_HOST)/bin/emacs \1;g' \
|
sed -ie 's;./src/emacs\( --version\);$(STAGING_DIR_HOST)/bin/emacs \1;g' \
|
||||||
$(PKG_BUILD_DIR)/Makefile
|
$(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
|
$(INSTALL_DATA) ./files/site-start.el $(PKG_INSTALL_DIR)/usr/share/emacs/$(PKG_VERSION)/site-lisp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/emacs/install
|
define Package/emacs/install
|
||||||
$(INSTALL_DIR) $(1)/usr
|
$(INSTALL_DIR) $(1)/usr
|
||||||
cp -r $(PKG_INSTALL_DIR)/usr/{bin,lib} $(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
|
endef
|
||||||
|
|
||||||
define Package/emacs-data/install
|
define Package/emacs-data/install
|
||||||
|
Loading…
Reference in New Issue
Block a user