libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [7/11] Native MSVC support (compile-tag)


From: Peter Rosin
Subject: Re: [7/11] Native MSVC support (compile-tag)
Date: Thu, 12 Jul 2007 13:15:42 +0200
User-agent: Mutt/1.5.12-2006-07-14

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

[Prev in Thread] Current Thread [Next in Thread]