santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Cantor" <>
Subject RE: C++ 1.3.1-RC1
Date Mon, 30 Oct 2006 18:32:20 GMT
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
      # Flags for warnings as errors
      cxxflags_warnerror="-xwe -errtags"
      # Flags for Optimise
      # Flags for debug

Later on, this:


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

-- Scott

View raw message