Re: make install-strip

2005-08-18 Thread Stepan Kasal
Hello, On Thu, Aug 18, 2005 at 05:50:15PM +0200, Harald Dunkel wrote: > Would it be possible to strip libraries at install > time? Or do I have to set CFLAGS/CXXFLAGS? if I understand correctly, "make install-strip" strips libtool libraries (LTLIBRARIES). (see /usr/share

make install-strip

2005-08-18 Thread Harald Dunkel
Hi folks, Would it be possible to strip libraries at install time? Or do I have to set CFLAGS/CXXFLAGS? Regards Harri

Re: automake 1.4g: About `make install-strip'

2001-05-29 Thread Maciej W. Rozycki
On 28 May 2001, Alexandre Oliva wrote: > > I was thinking of a configure-time check if `install -s' works. > > I'm not sure I'd trust such a check. I'm pretty sure it might be > possible to construct situations in strip would succeed in stripping a > certain simple program for a different arch

Re: automake 1.4g: About `make install-strip'

2001-05-29 Thread Alexandre Duret-Lutz
>>> "Maciej" == Maciej W Rozycki <[EMAIL PROTECTED]> writes: Maciej> On 28 May 2001, Alexandre Duret-Lutz wrote: [...] >> install binaries using the system's install, and strip them >> afterward. [...] Maciej> What if INSTALL_PROGRAM='$INSTALL -m111' (and you are not root)? Ah yes, good poi

Re: automake 1.4g: About `make install-strip'

2001-05-28 Thread Alexandre Oliva
On May 28, 2001, "Maciej W. Rozycki" <[EMAIL PROTECTED]> wrote: > I was thinking of a configure-time check if `install -s' works. I'm not sure I'd trust such a check. I'm pretty sure it might be possible to construct situations in strip would succeed in stripping a certain simple program for a

Re: automake 1.4g: About `make install-strip'

2001-05-28 Thread Alexandre Oliva
On May 28, 2001, "Maciej W. Rozycki" <[EMAIL PROTECTED]> wrote: > On 26 May 2001, Alexandre Oliva wrote: >> > Note that I'm writing of a performance. Install-sh is a serious >> > performance hit for non-trivial installs. >> >> How about only use install-sh for install-strip on cross builds? >

Re: automake 1.4g: About `make install-strip'

2001-05-28 Thread Maciej W. Rozycki
On 26 May 2001, Tom Tromey wrote: > Here in automake-land, we've long considered this the primary > approach, with install-strip secondary. My recollection is that > install-strip was added to the standards by RMS because he didn't want > to add INSTALL_SCRIPT. In those days François advocated

Re: automake 1.4g: About `make install-strip'

2001-05-28 Thread Maciej W. Rozycki
On 28 May 2001, Alexandre Duret-Lutz wrote: > Although i initially suggested it, there is another > install-strip approach that we completly forgot: install > binaries using the system's install, and strip them afterward. I haven't forgotten, actually. I just consider it unsafe. What if INSTA

Re: automake 1.4g: About `make install-strip'

2001-05-28 Thread Maciej W. Rozycki
On 26 May 2001, Alexandre Oliva wrote: > > Note that I'm writing of a performance. Install-sh is a serious > > performance hit for non-trivial installs. > > How about only use install-sh for install-strip on cross builds? Well, that actually handles one half of the problem (yes, I do cross b

Re: automake 1.4g: About `make install-strip'

2001-05-28 Thread Alexandre Duret-Lutz
>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: Alexandre> On May 26, 2001, Tom Tromey <[EMAIL PROTECTED]> wrote: >>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: >>> Note that I'm writing of a performance. Install-sh is a serious >>> performance hit for non-tr

Re: automake 1.4g: About `make install-strip'

2001-05-28 Thread Alexandre Duret-Lutz
>>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: [...] Tom> I agree that having install-strip work efficiently is important. Tom> However I don't believe that it is more important than (1) getting 1.5 Tom> out in a timely way (though I don't believe this will derail it either Tom> way), o

Re: automake 1.4g: About `make install-strip'

2001-05-26 Thread Alexandre Oliva
On May 26, 2001, Tom Tromey <[EMAIL PROTECTED]> wrote: >> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: >>> Note that I'm writing of a performance. Install-sh is a serious >>> performance hit for non-trivial installs. Alexandre> How about only use install-sh for install-strip o

Re: automake 1.4g: About `make install-strip'

2001-05-25 Thread Tom Tromey
> "Maciej" == Maciej W Rozycki <[EMAIL PROTECTED]> writes: Maciej> INSTALL_PROGRAM='${INSTALL} -s' ./configure Maciej> make Maciej> make install Maciej> which I actually use for plain autoconf packages, which have Maciej> no idea of install-strip. Still, it's more like a workaround Maciej>

Re: automake 1.4g: About `make install-strip'

2001-05-25 Thread Tom Tromey
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: >> Note that I'm writing of a performance. Install-sh is a serious >> performance hit for non-trivial installs. Alexandre> How about only use install-sh for install-strip on cross builds? I'm ok with this idea. Can it be easily

Re: automake 1.4g: About `make install-strip'

2001-05-25 Thread Alexandre Oliva
On May 24, 2001, "Maciej W. Rozycki" <[EMAIL PROTECTED]> wrote: > On 23 May 2001, Tom Tromey wrote: >> This is possible, but we don't recommend it. Instead we try to >> approach cross builds the "autoconf way": we assume that configure >> will use things like AC_CHECK_TOOL, etc. > Note that I'

Re: automake 1.4g: About `make install-strip'

2001-05-25 Thread Maciej W. Rozycki
On 25 May 2001, Alexandre Duret-Lutz wrote: > Maciej> Note that I'm writing of a performance. Install-sh is a serious > Maciej> performance hit for non-trivial installs. > > Then maybe you could bypass install-strip using something like > ./configure LDFLAGS=-s > make > make install

Re: automake 1.4g: About `make install-strip'

2001-05-25 Thread Alexandre Duret-Lutz
>>> "Maciej" == Maciej W Rozycki <[EMAIL PROTECTED]> writes: Maciej> On 23 May 2001, Tom Tromey wrote: >> This is possible, but we don't recommend it. Instead we try to >> approach cross builds the "autoconf way": we assume that configure >> will use things like AC_CHECK_TOOL, etc. Maciej>

Re: automake 1.4g: About `make install-strip'

2001-05-24 Thread Maciej W. Rozycki
On 23 May 2001, Tom Tromey wrote: > This is possible, but we don't recommend it. Instead we try to > approach cross builds the "autoconf way": we assume that configure > will use things like AC_CHECK_TOOL, etc. Note that I'm writing of a performance. Install-sh is a serious performance hit fo

Re: automake 1.4g: About `make install-strip'

2001-05-23 Thread Tom Tromey
>>>>> "Maciej" == Maciej W Rozycki <[EMAIL PROTECTED]> writes: Maciej> I'm doing cross-compiles regularly and I've never had a Maciej> problem with `make install-strip' using install from Maciej> fileutils. The point is cross-t

automake 1.4g: About `make install-strip'

2001-05-23 Thread Maciej W. Rozycki
Hi, I see install is not used for `make install-strip' anymore. I'm not sure if that's a good solution. Install-sh is a script and is thus much slower. The gain is you may set the STRIPPROG environment variable. But the gain is questionable. I'm doing cross-compile

Re: Fileutils 4.1: make install-strip broken

2001-05-02 Thread Alexandre Oliva
On May 1, 2001, Andreas Schwab <[EMAIL PROTECTED]> wrote: > This is probably a bug in automake 1.4e. Yep. A patch to fix is has just gone in, IIRC. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}

Re: Cleanup 4/4: make install-strip in cross-compilation environments

2001-02-26 Thread Alexandre Duret-Lutz
I just thought about another minor detail Calling `CDPATH=: && cd $_am_dirpart && pwd`/install-sh disallows the use of install.sh. -- Alexandre Duret-Lutz

Re: Cleanup 4/4: make install-strip in cross-compilation environments

2001-02-26 Thread Alexandre Duret-Lutz
>>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: >> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: Tom> I think relying on a subdir `make' invocation expanding Tom> `INSTALL_PROGRAM' correctly is not too likely to work. adl> I still don't and would really like to get more

Re: Cleanup 2/4: make install-strip in cross-compilation environments

2001-02-26 Thread Alexandre Duret-Lutz
>>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: >> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> I don't care about depend.m4, this adds only the missing changes adl> from m4/missing.m4. Note that this also fix a bug in adl> AC_MISSING_INSTALL_SH which was using ${ac

Re: Cleanup 4/4: make install-strip in cross-compilation environments

2001-02-25 Thread Tom Tromey
> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: Tom> I think relying on a subdir `make' invocation expanding Tom> `INSTALL_PROGRAM' correctly is not too likely to work. adl> I still don't and would really like to get more feedback on this. adl> The only workaround I can think o

Re: Cleanup 3/4: make install-strip in cross-compilation environments

2001-02-25 Thread Tom Tromey
> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> 2001-02-25 Alexandre Duret-Lutz <[EMAIL PROTECTED]> adl>* header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete). I checked this in. Tom

Re: Cleanup 2/4: make install-strip in cross-compilation environments

2001-02-25 Thread Tom Tromey
> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> I don't care about depend.m4, this adds only the missing changes adl> from m4/missing.m4. Note that this also fix a bug in adl> AC_MISSING_INSTALL_SH which was using ${ac_auxdir} instead of adl> ${ac_aux_dir}. Why is this nee

Re: Cleanup 1/4: make install-strip in cross-compilation environments

2001-02-25 Thread Tom Tromey
> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> 2001-02-25 Alexandre Duret-Lutz <[EMAIL PROTECTED]> adl>* ChangeLog (2001-01-28): Remove entries for chunks not applied. I'll check this in. You don't actually need a ChangeLog entry for ChangeLog updates. BTW I discover

Re: Cleanup 2/4: make install-strip in cross-compilation environments

2001-02-25 Thread Alexandre Duret-Lutz
> >>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > >> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: > adl> 2001-01-28 Alexandre Duret-Lutz <[EMAIL PROTECTED]> > adl> * m4/strip.m4: New file. > adl> * m4/Makefile.am (m4data_DATA): Add strip.m4. > adl> * m4/init.m4: Call

Re: Cleanup 4/4: make install-strip in cross-compilation environments

2001-02-25 Thread Alexandre Duret-Lutz
[...] Tom> I think relying on a subdir `make' invocation expanding Tom> `INSTALL_PROGRAM' correctly is not too likely to work. adl> I don't know. I still don't and would really like to get more feedback on this. The only workaround I can think off is to select the install program at run t

Re: Cleanup 3/4: make install-strip in cross-compilation environments

2001-02-25 Thread Alexandre Duret-Lutz
> >>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > > adl> * automake.in (handle_merge_targets): In the install-strip rule, > adl> set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV > adl> to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG. > adl> * progs.am (i

Re: Cleanup 1/4: make install-strip in cross-compilation environments

2001-02-25 Thread Alexandre Duret-Lutz
> >>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > >> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: > adl> 2001-01-28 Alexandre Duret-Lutz <[EMAIL PROTECTED]> > adl> * m4/strip.m4: New file. > adl> * m4/Makefile.am (m4data_DATA): Add strip.m4. > adl> * m4/init.m4: Call

Re: PATCH(2): make install-strip in cross-compilation environments

2001-02-19 Thread Alexandre Duret-Lutz
>>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: >> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> 2001-01-28 Alexandre Duret-Lutz <[EMAIL PROTECTED]> adl> * m4/strip.m4: New file. adl> * m4/Makefile.am (m4data_DATA): Add strip.m4. adl> * m4/init.m4: Call AM_PROG_INS

Re: PATCH(2): make install-strip in cross-compilation environments

2001-02-16 Thread Tom Tromey
> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> 2001-01-28 Alexandre Duret-Lutz <[EMAIL PROTECTED]> adl>* m4/strip.m4: New file. adl>* m4/Makefile.am (m4data_DATA): Add strip.m4. adl>* m4/init.m4: Call AM_PROG_INSTALL_STRIP. adl>* m4/missing.m4 (AM_AUX_DIR_E

PATCH(2): make install-strip in cross-compilation environments

2001-01-28 Thread Alexandre Duret-Lutz
Here is a revised patch. 2001-01-28 Alexandre Duret-Lutz <[EMAIL PROTECTED]> * m4/strip.m4: New file. * m4/Makefile.am (m4data_DATA): Add strip.m4. * m4/init.m4: Call AM_PROG_INSTALL_STRIP. * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function. (AM_MISSING_I

Re: PATCH: make install-strip in cross-compilation environments

2001-01-24 Thread Alexandre Duret-Lutz
>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: Alexandre> On Jan 23, 2001, Alexandre Duret-Lutz <[EMAIL PROTECTED]> wrote: >> INSTALL_STRIP_PROGRAM=$$(topsrc_dir)/$(install_sh) -s >> and then >> install-strip: >> $(MAKE) INSTALL_PROGRAM='$(INSTALL_STRIP_PROGRAM)' install

Re: PATCH: make install-strip in cross-compilation environments

2001-01-23 Thread Alexandre Oliva
On Jan 23, 2001, Alexandre Duret-Lutz <[EMAIL PROTECTED]> wrote: > INSTALL_STRIP_PROGRAM=$$(topsrc_dir)/$(install_sh) -s > and then > install-strip: > $(MAKE) INSTALL_PROGRAM='$(INSTALL_STRIP_PROGRAM)' install > So that $(topsrc_dir) gets evaluated in the sub-make. From > the simulati

Re: PATCH: make install-strip in cross-compilation environments

2001-01-22 Thread Alexandre Duret-Lutz
_sh) -s #INSTALL_STRIP_PROGRAM=$$(INSTALL) -s install: @echo using $(INSTALL_PROGRAM) install-strip: $(MAKE) INSTALL_PROGRAM='$(INSTALL_STRIP_PROGRAM)' install ~/tmp % make install using /usr/bin/install cd a && make install make[1]: Entering directory `/home/adl/tmp/a' u

Re: PATCH: make install-strip in cross-compilation environments

2001-01-22 Thread Alexandre Duret-Lutz
ing the patch I configured my package with ../configure --host=i386-mingw32msvc and did `make install-strip' with success. If I'm correct, running ../configure implies $srcdir = .. and thus $install_sh is relative. However install-strip succeded! I will double check tonight to be sure; an

Re: PATCH: make install-strip in cross-compilation environments

2001-01-21 Thread Tom Tromey
> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> Can someone explain me the comment before the install-strip adl> rule: "We can't just set INSTALL_PROGRAM because that might be a adl> relative path". This comment was added with the following adl> ChangeLog entry: If there is

PATCH: make install-strip in cross-compilation environments

2001-01-20 Thread Alexandre Duret-Lutz
[sorry for the previous unedited mail, sometimes I play gnus with my feet] >>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: [...] Alexandre> Even better! Then we can just arrange for Alexandre> INSTALL_STRIP to set STRIPPROG and use install-sh Alexandre> for cross install-st

Re: make install-strip in cross-compilation environments

2001-01-20 Thread Alexandre Duret-Lutz
>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> >>> writes: Alexandre> On Jan 18, 2001, Tom Tromey <[EMAIL PROTECTED]> wrote: Alexandre> We could surely adjust install-sh so as to take a STRIP Alexandre> variable into account, and set INSTALL_STRIP (a new Alexandre> variable, set to th

Re: make install-strip in cross-compilation environments

2001-01-18 Thread Alexandre Oliva
On Jan 18, 2001, Tom Tromey <[EMAIL PROTECTED]> wrote: Alexandre> We could surely adjust install-sh so as to take a STRIP Alexandre> variable into account, and set INSTALL_STRIP (a new Alexandre> variable, set to the same as `$(INSTALL)' if not Alexandre> cross-compiling, or to `STRIP=toolchain-s

Re: make install-strip in cross-compilation environments

2001-01-18 Thread Tom Tromey
Alexandre> We could surely adjust install-sh so as to take a STRIP Alexandre> variable into account, and set INSTALL_STRIP (a new Alexandre> variable, set to the same as `$(INSTALL)' if not Alexandre> cross-compiling, or to `STRIP=toolchain-strip Alexandre> $(CONFIG_SHELL) /path/to/install-sh' oth

Re: make install-strip in cross-compilation environments

2001-01-18 Thread Alexandre Oliva
On Jan 17, 2001, Tom Tromey <[EMAIL PROTECTED]> wrote: adl> b) change the Makefiles to not call `install -s', but just adl> `install' followed by a direct call to the correct strip. > This would make sense. It is unfortunate though. We could surely adjust install-sh so as to take a STRIP vari

Re: make install-strip in cross-compilation environments

2001-01-18 Thread Alexandre Duret-Lutz
>>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: [...] adl> b) change the Makefiles to not call `install -s', but just adl> `install' followed by a direct call to the correct strip. Tom> This would make sense. It is unfortu

Re: make install-strip in cross-compilation environments

2001-01-17 Thread Tom Tromey
>>>>> "adl" == Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes: adl> Unfortunately, there is something roten with `make install-strip' adl> in such case: `install' or `install-sh' are called with the `-s' adl> option to strip ins

make install-strip in cross-compilation environments

2001-01-17 Thread Alexandre Duret-Lutz
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 call