Loic Dachary wrote:
I think the --tag problem appears when using ccache. Disabling ccache or arranging for it to be hidden under g++ (symlink) would fix the issue. It would be better if libtool knew about ccache, of course.
I tracked down the problem, it comes from the way automake invokes libtool. I have submitted the 3-line patch below to the automake ML (adds shell quoting to the compiler name). The --tag stuff is new in the libtool 1.5.x serie, that's why it never b0rked before.
Debian users can temporarily fix it by installing the libtool1.4 package.
2123c2123 < my $obj_ltcompile = '$(LIBTOOL) --mode=compile ' . $obj_compile; --- > my $obj_ltcompile = "\$(LIBTOOL) --mode=compile \"$obj_compile\""; 7501c7501 < &define_variable ("LT$var", "\$(LIBTOOL) --mode=compile $value") --- > &define_variable ("LT$var", "\$(LIBTOOL) --mode=compile \"$value\"") 7520c7520 < . $lang->link)); --- > . "\"$lang->link\""));