Re: Can't get libtool to recognize -s

This is a discussion on Re: Can't get libtool to recognize -s within the SNMP Coders forums, part of the Networking and Network Related category; > On Thu, 2006-03-02 at 09:01 -0500, cnelson@nycap.rr.com wrote: > > I'm trying ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2006
cnelson@nycap.rr.com
 
Posts: n/a
Default Re: Can't get libtool to recognize -s

> On Thu, 2006-03-02 at 09:01 -0500, cnelson@nycap.rr.com wrote:
> > I'm trying to address the feature request at

>
> aid=965788&group_id=12694&atid=362694
> >
> > but I can't get libtool to accept the -s option even though the
> > code appears to expect it to turn on "stripme".

>
> I'm not certain, but I don't believe that's an option to libtool.
> I *think* that's handling an option to "install" - something like
>
> libtool install -s
>
> rather than
>
> libtool -s install
>
> Does that help any?


My change to configure.in had put this in configure:

if test "${enable_stripped+set}" = set; then
enableval="$enable_stripped"
INSTALL="$INSTALL -s"
LDFLAGS="$LDFLAGS -s"
fi;

but INSTALL wasn't yet set and later configure checked to see if it
should be set:

if test -z "$INSTALL"; then
..

and since I'd set INSTALL, none of the code that found /usr/bin/install
and added -c to it was executed. As a result, my Makefile ended up with:

INSTALL = $(LIBTOOL) --mode=install -s

with --enable-strippped and

INSTALL = $(LIBTOOL) --mode=install /usr/bin/install -c

without.


So, I changed my new configure clause to:

if test "${enable_stripped+set}" = set; then
enableval="$enable_stripped"
INSTALL_OPT="$INSTALL_OPT -s"
LDFLAGS="$LDFLAGS -s"
fi;

and later added INSTALL_OPT where INSTALL was set:

if test "${ac_cv_path_install+set}" = set; then
INSTALL="$ac_cv_path_install $INSTALL_OPT"
else
...

I did this manually in configure to prove it worked before monkeying
with configure.in and autoconf. Sure enough, that worked. But I can't
find anything in configure.in that leads to the preceeding clause so I
can edit it to include INSTALL_OPT. What configure.in code results in

if test "${ac_cv_path_install+set}" = set; then
INSTALL="$ac_cv_path_install"
else
# As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the path is relative.
INSTALL="$ac_install_sh"
fi

?


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0