This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Building libgcj without optimization
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: java at gcc dot gnu dot org
- Date: 12 Sep 2002 11:21:44 -0600
- Subject: Re: Building libgcj without optimization
- References: <E17p6zE-0006ur-00@majestix.konqueror.de><87lm68m7az.fsf@fleche.redhat.com><15744.42519.129788.961875@cuddles.cambridge.redhat.com>
- Reply-to: tromey at redhat dot com
Andrew> Is there an easy way to make libgcj do what gcc does,
Andrew> i.e. only use -O2 when you build from the top level?
Maybe not. Since libgcj is a target library, I think things like
GCJFLAGS will always be set when configuring it (this happens via the
top-level Makefile). And I think we'd like the setting from configure
to end up in the Makefile by default.
Andrew> Building without optimization is a pain because -O2 doesn't
Andrew> appear in the Makefile.am but is inherited from above; there's
Andrew> nothing I can see that you could change to -O0.
My standard build script does this from the top level.
make CXXFLAGS=-g GCJFLAGS=-g
This works for me. And since this affects the Makefile, future builds
in the libjava build directory pick up the -g automatically.
Tom