This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
make install-strip in cross-compilation environments
- To: automake at gnu dot org
- Subject: make install-strip in cross-compilation environments
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- Date: 17 Jan 2001 09:44:08 +0100
- List-Id: Discussion list for automake <automake.gnu.org><mailto:automake-request@gnu.org?subject=unsubscribe>
- Organization: LRDE/EPITA http://www.lrde.epita.fr/
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