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]

Re: make install-strip


On May 18, 1999, Thomas Tanner <tanner@gmx.de> wrote:

> Alexandre Oliva wrote:

>> That's because some platforms require specific modes on shared
>> libraries for them to run.  AFAIR, HPsUX requires mode 555, for
>> example, and INSTALL_PROGRAM, that defaults to 755, would get it
>> wrong.

>  OK. Then passing INSTALL_STRIP_FLAG to libtool should be
>  the right way.

This would require libtool to recognize arbitrary strip flags and
remove them or replace them with some more conservative
platform-dependent flag, depending on whether the library is to be
linked with later or not.  Currently libtool can't tell whether this
is the case.

>  It works fine with GNU strip (binutils package):

This is exactly portable :-(

>  In any case, libtool should decide whether it can strip libraries.

Well, if you can figure out a way to tell which is the strip flag
being passed to an arbitrary install program, and them remove it or
replace it with something else, as appropriate, when installing
libraries, and removing it completely when installing the .la file,
I'm all for it.  We just can't afford installing unusable libraries,
or failing because strip does not recognize the format of a .la file.

One possible solution to alleviate this problem is to create a
INSTALL_STRIP_LTLIB_FLAG that the user could specify as
--strip-unneeded or --strip-debug, that would be passed to libtool
*before* the install command, so that libtool could use the install
command unchanged, but would run GNU strip on the installed libraries.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists


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