[Ecls-list] configure and custom debug flags

Matthew Mondor mm_lists at pulsar-zone.net
Mon Sep 7 05:44:38 UTC 2009


On Mon, 7 Sep 2009 01:53:59 +0700
Kamil Shakirov <kamils80 at gmail.com> wrote:

> Hi Juan,
> 
> Running configure script with supplied custom debug parameters eg. -- 
> with-debug-cflags="-ggdb -O0" still gets overridden with optimization  
> flags -O2 and -O3:
> 
> gcc -DECLDIR="\"/Users/kamil/local/lisp/ecl/lib/ecl-9.8.4\"" -I. -I/ 
> Users/kamil/temp/ecl/build -I/Users/kamil/temp/ecl/src/c -I../ecl/gc - 
> DECL_API -DECL_NO_LEGACY -ggdb -O0 -g -O2 -fPIC -fno-common -O3 - 
> D_THREAD_SAFE -Ddarwin -c  -o gfun.o tmp.c
> 
> I wanted to turn off inlining.

I guess that it'd indeed be nice if that configure option worked as
expected, but for debug builds I simply set/exported CFLAGS='-O0 -g' and
LDFLAGS='-g' environment variables before configuring and it seemed to
do the trick.
-- 
Matt




More information about the ecl-devel mailing list