automake-patches
[Top][All Lists]
Advanced

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

Re: Always use -c -o when compiling C


From: Stefano Lattarini
Subject: Re: Always use -c -o when compiling C
Date: Thu, 30 May 2013 11:46:15 +0200

On 05/30/2013 11:35 AM, Peter Rosin wrote:
> 
> Ok, thanks, how about this?
> 
> Cheers,
> Peter 
> 
> From 9f325eea27e41d868fbe020fe4034bec3c758fb0 Mon Sep 17 00:00:00 2001
> From: Peter Rosin <address@hidden>
> Date: Thu, 30 May 2013 11:31:02 +0200
> Subject: [PATCH] automake: assume we can always pass '-o' to the C compiler
> 
> It is assumed that we can pass -c -o to the C compiler, so remove
> some special casing and always do that.
> 
> This change is similar in spirit to v1.13.1d-217-g7299c4d "depend: assume
> we can always pass '-o' to the C compiler"
> 
> This change also happen to fix a testsuite failure
> (t/silent-many-languages.sh) when mixing MSVC and GNU fortran, which
> have different default object file extensions (.obj vs. .o). This
> difference in object file extension is not handled well and caused
> Automake to look for MSVC objects with .o extension. Always using -o
> makes MSVC create .o object files and linking succeeds. Not that
> anybody recommends mixing toolchains or anything.
> 
> * bin/automake.in (handle_languages): Remove conditional modification
> of 'output_flag' entry for 'c'.
> (register_language ('name' => 'c')): Add 'output_flag' entry set to '-o'.
> 
> Signed-off-by: Peter Rosin <address@hidden>
>
ACK, and thanks.

  Stefano



reply via email to

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