[Top][All Lists]

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

Feature request: support distcc and ccache (automatic --mode=compile)

From: Jari
Subject: Feature request: support distcc and ccache (automatic --mode=compile)
Date: Fri, 31 Dec 2004 12:47:30 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (windows-nt)

[Please keep CC, I'm not in this list]

Libtool could automatically switch to --mode-compile when it
sees standard commands 'ccache' or 'distcc'. The Makefiles usually do
not include --mode=compile, because the CC is usually set to gcc, 
which libtool recognizes.

An example; libtool 1.5.10 compiling sqlite package under Cygwin:

    ccache gcc  -o lemon /usr/src/build/build/sqlite/sqlite-2.8.12/tool/lemon.c
    cp /usr/src/build/build/sqlite/sqlite-2.8.12/tool/lempar.c .
    cp /usr/src/build/build/sqlite/sqlite-2.8.12/src/parse.y .
    ./lemon parse.y
    ./libtool ccache gcc  -DOS_UNIX=0 -DOS_WIN=1 -DHAVE_USLEEP=1 -I. 
-I/usr/src/build/build/sqlite/sqlite-2.8.12/src -DNDEBUG -no-undefined 
-I/usr/generic -I/usr/win -c 
    libtool: warning: cannot infer operation mode from `ccache'
    libtool: you must specify a MODE
    Try `libtool --help' for more information.
If order to fix this I would have to replace all $(LIBTOOL) references
in sqlite's Makefile.in. 

Perhaps libtool could recognize few more compilers?


reply via email to

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