[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make install-strip in cross-compilation environments

From: Alexandre Duret-Lutz
Subject: make install-strip in cross-compilation environments
Date: 17 Jan 2001 09:44:08 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Hi all,

autoconf and automake do a great job at finding the right
tools (CC, RANLIB, etc.) to use in a package configured for
cross-compilation with --host=foobar.

Unfortunately, there is something roten with `make
install-strip' in such case: `install' or `install-sh' are
called with the `-s' option to strip installed binaries, but
this in turn calls `strip' and not `foobar-strip' as expected.

I'm wondering what would be the best way to cope with this

a) patch GNU fileutils so that `install' honors the `STRIPPROG'
   envvar as `install-sh' does, and set the value of that variable
   before calling install in the Makefiles.

b) change the Makefiles to not call `install -s', but just 
   `install' followed by a direct call to the correct strip.

c) don't use `make install-strip', but add a --enable-strip
   option to configure that adds `-s' to LDFLAGS.

d) other?

Alexandre Duret-Lutz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]