santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Cantor" <canto...@osu.edu>
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
      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


Mime
View raw message