My problem now is just how to set CFLAGS="-xtarget=native -xarch=native64"
for building net-snmp.
If I set it via "configure" (i.e.: "./configure CFLAGS="-xtarget=native
-xarch=native64"), then configure stops with errors relating to "c compiler
cannot generate executables".
If I allow configure to proceed as I normally do (without any command line
options), THEN, manually edit "Makefile", adding the "-xtarget=native
-xarch=native64" options to the CFLAGS definition line, then the new options
are mysteriously ignored, like the make process is somehow getting its
CFLAGS deifinition from elsewhere.
If I simply set the CFLAGS variable on the command-line, either before or
after I run ./configure, then the new variables I specify for CFLAGS are
also ignored when I run make.
Very frustrating.
Any guidance anyone can provide for setting the CFLAGS , or adding to the
existing CFLAGS variable for net-snmp builds will be greatly appreciated.
Thanks
On Sun, Feb 28, 2010 at 3:20 PM, Magnus Fromreide <ma...@lysator.liu.se>wrote:
> On Sun, 2010-02-28 at 13:25 -0500, Mike Walker wrote:
> > Has anyone successfully built net-snmp 5.5 for Solaris 10 in 64bit
> > mode?
> >
> > Following the guidelines in
> > http://net-snmp.sourceforge.net/docs/README.solaris.html builds
> > Solaris 10 libraries in 32bit mode only; subsequently linking my 64bit
> > app generates a "wrong ELF class" linkage error...
>
> Trying to build with CFLAGS="-xtarget=native -xarch=native64" on Solaris
> 10 seems to produce working code, why don't you give it a try and
> report back?
>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders