diff mbox

Use --strip-program to accommodate cross-compilers

Message ID 1280454337-30919-1-git-send-email-hollis@penguinppc.org
State Superseded
Headers show

Commit Message

Hollis Blanchard July 30, 2010, 1:45 a.m. UTC
From: Hollis Blanchard <hollis_blanchard@mentor.com>

Fixes this error during make install:
...
install -m0755 -p -s qemu-nbd qemu-img qemu-io "/opt/ppc440-angstrom-linux/usr/local/bin"
strip: Unable to recognise the format of the input file `/opt/ppc440-angstrom-linux/usr/local/bin/qemu-nbd'

Signed-off-by: Hollis Blanchard <hollis@penguinppc.org>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Blue Swirl July 30, 2010, 2:06 p.m. UTC | #1
On Fri, Jul 30, 2010 at 1:45 AM, Hollis Blanchard <hollis@penguinppc.org> wrote:
> From: Hollis Blanchard <hollis_blanchard@mentor.com>
>
> Fixes this error during make install:
> ...
> install -m0755 -p -s qemu-nbd qemu-img qemu-io "/opt/ppc440-angstrom-linux/usr/local/bin"
> strip: Unable to recognise the format of the input file `/opt/ppc440-angstrom-linux/usr/local/bin/qemu-nbd'
>
> Signed-off-by: Hollis Blanchard <hollis@penguinppc.org>
> ---
>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index b68f01a..8385b24 100755
> --- a/configure
> +++ b/configure
> @@ -2157,7 +2157,7 @@ if test "$debug" = "yes" ; then
>   echo "CONFIG_DEBUG_EXEC=y" >> $config_host_mak
>  fi
>  if test "$strip_opt" = "yes" ; then
> -  echo "STRIP_OPT=-s" >> $config_host_mak
> +  echo "STRIP_OPT=-s --strip-program=${cross_prefix}strip" >> $config_host_mak

This flag is not supported by for example OpenBSD install command.
Instead stripping and installing could be broken down to two separate
commands.

>  fi
>  if test "$bigendian" = "yes" ; then
>   echo "HOST_WORDS_BIGENDIAN=y" >> $config_host_mak
> --
> 1.7.1.1
>
>
>
diff mbox

Patch

diff --git a/configure b/configure
index b68f01a..8385b24 100755
--- a/configure
+++ b/configure
@@ -2157,7 +2157,7 @@  if test "$debug" = "yes" ; then
   echo "CONFIG_DEBUG_EXEC=y" >> $config_host_mak
 fi
 if test "$strip_opt" = "yes" ; then
-  echo "STRIP_OPT=-s" >> $config_host_mak
+  echo "STRIP_OPT=-s --strip-program=${cross_prefix}strip" >> $config_host_mak
 fi
 if test "$bigendian" = "yes" ; then
   echo "HOST_WORDS_BIGENDIAN=y" >> $config_host_mak