Re: [Quickfix-developers] Build Quickfix with Sun SPRO compiler 6.2 or 8.0
Brought to you by:
orenmnero
From: Caleb E. <cal...@gm...> - 2004-09-13 12:40:50
|
On Fri, 10 Sep 2004 12:21:22 -0500, Oren Miller <or...@qu...> wrote: > As for the AR_FLAGS, I would expect that autoconf would be doing that > work in the AC_PROG_CXX macro. What version are you using? Maybe a I'm not using autoconf at all, just the supplied configure script that comes with QuickFIX. > newer version will handle this. Can you put together a little blurb > about what you did to get these setting in so I can add it to the > documentation? Basically with the SunPRO compilers, you can't use "ar" or "ld" to build static or shared libraries of C++ code, because these don't pull in all of the template instantiations. You need to use the C++ compiler (CC) with the flag -xar (static lib) or -G (shared). The -xs flag allows for debugging without having the .o files still lying around, and is optional. If you choose to not use the -g flag, you shouldn't specify -xs either. Kristofer's original email to the list that included a patch against 1.7.1 has this all spelled out (the paths to various things are system-specific; my C++ compiler lives in /opt not /usr/local): ---8<--- BUILD INSTRUCTIONS - untar quickfix-1.7.1.tar.gz - convert the eight files above to Unix test format (strip CRs with dos2unix) - apply the unified patch below (you'll need GNU patch) - export the following environment variables, editing for compiler and java location where appropriate) CC=/usr/local/SUNWspro/WS6U2/bin/CC CFLAGS=-g -xs CXX=/usr/local/SUNWspro/WS6U2/bin/CC CXXFLAGS=-g -xs LD=/usr/local/SUNWspro/WS6U2/bin/CC LDFLAGS=-g -xs -lCstd AR=/usr/local/SUNWspro/WS6U2/bin/CC AR_FLAGS=-g -xs -xar -o JAVA_HOME=/usr/local/java1.4.2 PATH=$JAVA_HOME:$PATH - run configure - make ---8<--- -- Caleb Epstein cal...@gm... |