automake: assume we can always pass '-o' to the C compiler
authorPeter Rosin <peda@lysator.liu.se>
Thu, 30 May 2013 09:31:02 +0000 (11:31 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Thu, 30 May 2013 09:31:02 +0000 (11:31 +0200)
commit9f325eea27e41d868fbe020fe4034bec3c758fb0
treebc470ebdb2073c396ad75d1d514579a5cc38597b
parent649c03b464cf55f50e696ebea482c65339ff4832
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 <peda@lysator.liu.se>
bin/automake.in