[Top][All Lists]

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

Re: 'ccache gcc' as compiler with libtool

From: Earnie Boyd
Subject: Re: 'ccache gcc' as compiler with libtool
Date: Wed, 26 Nov 2003 07:49:19 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

So, you need to

<file name='~/bin/cg++' status="untested">
#! /bin/sh
ccache g++ "$@"

Make sure ~/bin is in PATH and use cg++ to execute.


Vincent Caron wrote:

   I'm running automake 1.7.9 as packaged in Sid, and having trouble
using 'cache gcc' as compiler. I get this error :

/bin/sh ../libtool --mode=link ccache g++  -Wall [...]
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'

   As far as I could see, libtool extract the compiler name from the
first non-option argument, and stop parsing from here. So it identifies
the compiler (his internal var is base_compile) as 'ccache', and fails.

   Since Libtool is not 'wrong' and I don't see good ways to change its
command line parsing without breaking it, I chose to quote the compiler
name in automake invocations of libtool. I hope this 3-liner patch is


<        my $obj_ltcompile = '$(LIBTOOL) --mode=compile ' . $obj_compile;

            my $obj_ltcompile = "\$(LIBTOOL) --mode=compile \"$obj_compile\"";

<     &define_variable ("LT$var", "\$(LIBTOOL) --mode=compile $value")

   &define_variable ("LT$var", "\$(LIBTOOL) --mode=compile \"$value\"")

<                   . $lang->link));

                       . "\"$lang->link\""));

Powered by SourceForge <>

reply via email to

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