On Thu, 2010-06-03 at 05:16 -0700, Wes Hardaker wrote:
> >>>>> On Thu, 03 Jun 2010 09:33:11 +0200, Magnus Fromreide 
> >>>>> <[email protected]> said:
> 
> MF> For the one under /another/path this is wrong, there I would like it to
> MF> print -L/another/path/lib as that is where the libraries are located.
> 
> MF> Now my question is if I have understood how INSTALL_PREFIX and prefix at
> MF> install time should be handled is correct.
> 
> net-snmp-config is built by configure and thus will always use the
> prefixes that you used when configuring.  It was never intended to be
> modified during install time (and in fact, doing so would go against the
> configure/make philosophy of "create everything as the user, install
> those (without change) as root".

> The only way to accomplish what you're trying to do (currently) is to
> run configure, build and install twice.

Alas, that fails. The problem is that the libraries contains the
configured path in the .rodata section so if I change that and
reconfigure then the the perl support will look for
snmp_perl.pl/snmp_perl_trapd.pl in the wrong directory and read_config
will look for config in the wrong directories. Note that neither
SNMPCONFPATH nor SNMPSHAREPATH are configurable separately.

One could obviously imagine an alternate approach where I add options to
configure to set SNMPCONFPATH and SNMPSHAREPATH. Would that solution be
better?

/MF


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to