[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-security-dev
Subject: RE: C++ 1.3.1-RC1
From: "Scott Cantor" <cantor.2 () osu ! edu>
Date: 2006-10-30 18:32:20
Message-ID: 004101c6fc51$bc165ad0$93f29280 () oit ! ohiostate ! edu
[Download RAW message or body]
The gist of the Solaris problem I'm finding is the use of this approach to
setting build flags:
if test "x${ac_cv_cxx_compiler_gnu}" != "xyes"; then
# Assume SunCC
PIC=["-KPIC"]
PLATFORM_OPTIONS=["-mt"]
# Flags for warnings as errors
cxxflags_warnerror="-xwe -errtags"
# Flags for Optimise
cxxflags_optimise="-xO2"
# Flags for debug
cxxflags_debug="-g"
fi
Later on, this:
CC1=["${CXX} ${CXXFLAGS} ${PLATFORM_OPTIONS}"]
I'm not clear on what CC1 is, but it's not used by the make process later at
all. It's in Makefile, but is never referenced. When libtool runs the C++
compiler, it just runs it with whatever is in CPPFLAGS and CXXFLAGS, but not
PLATFORM_OPTIONS. So the SunCC flags are omitted from the build, in this
case no -mt for thread safety.
My suggestion is that you should append the PLATFORM_OPTIONS bits to CFLAGS
and CXXFLAGS directly. I think that will result in the right behavior. If
there's a more "correct" way, that's fine too, but I've never seen one
discussed.
-- Scott
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic