Re: Linking agent against a C++ application

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, 2006-01-27 at 15:34 +0000, Raffles wrote:
> ./configure --with-cc=g++ compiles the entire agent with the C++ 
> compiler, which I definitely want to avoid

Fair enough.   I wasn't sure whether this would be an acceptable
approach or not.  It was just the simplest way forward.


> I can understand that you might not be happy with this as standard 
> though. If you look at the patch I've done, all it requires is a 
> separate variable for the name of the compiler used during linking (I 
> called it LINKCC). Could we not make it standard in the Makefiles to use 
> $(CC) for compiling and $(LINKCC) for linking, so that you could do
> 
> ./configure --with-linkcc=g++

With LINKCC defaulting to $(CC), presumably?
That sounds a fairly sensible approach.

Anyone else like to comment?

Dave



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.