This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

make install-strip in cross-compilation environments


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]