Skip to contentSkip to conversation

Fix autotools instalation with symbols

PATCH Superseded Paulius Zaleckas 2 participants 3 messages Jan 19, 2010 – Jan 20, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix autotools instalation with symbols

When installing without symbols install-strip is used, with symbols - install-exec.
Since install-exec installs only executables, we should use simple install, to install other needed files also (like files in /usr/shared) as install-strip does.

---

 package/Makefile.autotools.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/Makefile.autotools.in +1 -1
index 7114bba..a8dd051 100644
@@ -60,7 +60,7 @@ $(2)_LIBTOOL_PATCH		?= YES
 $(2)_USE_CONFIG_CACHE           ?= $(if $(BR2_CONFIG_CACHE),YES,NO)
 $(2)_INSTALL_STAGING_OPT	?= DESTDIR=$$(STAGING_DIR) install
 ifeq ($(BR2_ENABLE_DEBUG),y)
-$(2)_INSTALL_TARGET_OPT		?= DESTDIR=$$(TARGET_DIR)  install-exec
+$(2)_INSTALL_TARGET_OPT		?= DESTDIR=$$(TARGET_DIR)  install
 else
 $(2)_INSTALL_TARGET_OPT		?= DESTDIR=$$(TARGET_DIR)  install-strip
 endif
#1 lore raw

PATCH 1/1 package: fix unstripped binary installation

From: Lionel Landwerlin <[email protected]>

---
 package/Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/Makefile.in +1 -1
index e643577..bc0ac7c 100644
@@ -163,7 +163,7 @@ TARGET_STRIP=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-sstrip
 STRIPCMD=$(TARGET_STRIP)
 endif
 ifeq ($(BR2_STRIP_none),y)
-TARGET_STRIP=true Not_stripping
+TARGET_STRIP=true
 STRIPCMD=$(TARGET_STRIP)
 endif
 INSTALL:=$(shell which install || type -p install)
Signature · 1 line
1.6.5.7
#2 lore raw

PATCH 1/1 Fix autotools instalation with symbols

In reply to Paulius Zaleckas

Le mardi 19 janvier 2010 ? 21:32 +0200, Paulius Zaleckas a ?crit :

Quoted 5 lines

When installing without symbols install-strip is used, with symbols - install-exec.
Since install-exec installs only executables, we should use simple install, to install other needed files also (like files in /usr/shared) as install-strip does.

Fully agree !

As well libraries' plugins aren't installed with install-exec (directfb gfxdrivers for examples). So we really need install-strip or install instead of install-exec.