On Tue, Jul 10, 2007 at 11:31:12PM +0200, Peter Rosin wrote:
> MSVC needs a hint to force it to compile either as C or C++.
> 
>       * libltdl/m4/libtool.m4: Add tag variable compile_tag to
>       enable tag specific compiler options that are bad in the
>       linking phase.
>       * libltdl/config/ltmain.m4sh: Add the tag specific options
>       to the compile command line.

Replying to self again with a related quote from Ralf:

        "Since there are bound to be other non-gcc compilers on w32,
        would it not suffice to test (in libtool.m4) for $cc_basename
        as either `cl' or `cccl'?

        You could just add a tagged flag compile_tag or so, make it
        empty by default, and ` -TC' or ` -TP' for cl in CC or CXX
        modes (think about cccl?)."

This is what I have done (at least I attempted to).

Cheers,
Peter


Reply via email to