How to compile gcc with no optimization and "-gdwarf-2 -g3"
Rupert Wood
me@rupey.net
Fri Jun 17 14:46:00 GMT 2005
Timothy wrote:
> And I tried
>
> # ./configure --with-dwarf2
> # make CFLAGS='-gdwarf-2 -g3' LIBCFLAGS='-gdwarf-2 -g3'
> BOOT_CFLAGS='-gdwarf-2 -g3'
I haven't done this for a while but I used to pass all the flags to
configure too, i.e.
# CFLAGS='-gdwarf-2 -g3' LIBCFLAGS='-gdwarf-2 -g3'
BOOT_CFLAGS='-gdwarf-2 -g3' ./configure --with-dwarf2
# make CFLAGS='-gdwarf-2 -g3' LIBCFLAGS='-gdwarf-2 -g3'
BOOT_CFLAGS='-gdwarf-2 -g3'
or just export them in advance (shell-specific)
export CFLAGS='-gdwarf-2 -g3'
export LIBCFLAGS='-gdwarf-2 -g3'
export BOOT_CFLAGS='-gdwarf-2 -g3'
./configure --with-dwarf2
make
Note that BOOT_CFLAGS probably won't make any difference since you're not
using "make bootstrap". If you're not building with a similar version of GCC
then you might want to bootstrap the compiler instead, but it sounds like
you know what you're doing!
Rup.
More information about the Gcc-help
mailing list