Hello.

I recently got the need to build binaries to install on a target system
and a development system where the file structure on the development
system differs from the target system but I still needs to run
net-snmp-config on the development system.

I ended up doing (on the development system)

./configure --prefix=/some/path
make
make install INSTALL_PREFIX=/tmp/my-netsnmp
make install prefix=/another/path exec_prefix=/another/path

with the intent to copy the stuff under /tmp/my-netsnmp to the target
system and using the stuff under /another/path to compile on the
development system.

With this I end up with a net-snmp-config
in /tmp/my-netsnmp/some/path/bin and one in /another/path/bin.

If I execute either with the flag --libdir they print -L/some/path/lib.
For the one under /tmp/my-netsnmp this is correct.
For the one under /another/path this is wrong, there I would like it to
print -L/another/path/lib as that is where the libraries are located.

Now my question is if I have understood how INSTALL_PREFIX and prefix at
install time should be handled is correct.

/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