Wireshark-dev: [Wireshark-dev] Overriding CC from command line
From: Kovarththanan Rajaratnam <krj@xxxxxxxxxxxxx>
Date: Sat, 26 Jul 2008 15:31:38 +0200
Hello,

I'm trying to compile Wireshark with clang [1]. A small python script (ccc) is provided by clang which should act as a drop in replacement for gcc. However, compiling Wireshark on my Ubuntu box with:

make all CC=ccc

causes the following problem (a small snippet):

make[2]: Entering directory `/home/krj/wireshark/wsutil'
/bin/bash ../libtool --tag=CC --mode=link ccc -Werror -DINET6 -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Wcast-align -I/usr/local/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -o libwsutil.la -rpath /usr/local/lib mpeg-audio.lo privileges.lo -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0 -lz gcc -shared .libs/mpeg-audio.o .libs/privileges.o -L/usr/local/lib /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lz -pthread -Wl,--export-dynamic -Wl,-soname -Wl,libwsutil.so.0 -o .libs/libwsutil.so.0.0.0

AFAICT, libtool (1.5.26-1ubuntu1) doesn't seem to invoke the given ccc script. Any hints?

[1] http://clang.llvm.org/get_started.html

--
Best Regards
Kovarththanan Rajaratnam