gcc build without debug (no -g)

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

 



Hi,

I can't seem to figure out how to disable debug in a gcc build without
hacking on some of the build files. Is there a built in way to get a
build with debug symbols disabled (for the installed size reduction)?
This is for 3.4.6 and 4.3.5 on a Linux PowerPC.

Also, anyone see any problems with:

CFLAGS="-O2 -mcpu=750 -mmultiple -mstring"

The machine is a PowerMac 8600 with a 750GX processor card. The 3.4.6
compiler seems ok. Firefox 2.0.0.15pre seems to run when built with
3.4.6. The same is not true for 4.3.5. Linux 2.6.29 won't run when
built with 4.3.5 either. 3.4.6 can't build past 2.6.28. I had
relatively little trouble getting 4.3.5 to build 2.6.36 on a PowerMac
GigE (7455 x 2). Both with YDL 4.0. gcc 3.3.3 ==> 3.4.6  ==> 4.3.5.

One more question, I only used the CFLAGS="..." on the configure line.
Do I also need to use it on the make line:  CFLAGS="..." make?

Thanks!

kevin

CFLAGS="-O2 -mcpu=750 -mmultiple -mstring" \
        LIBCFLAGS="$CFLAGS" \
        LIBCXXFLAGS="$CFLAGS" \
        BOOT_CFLAGS="$CFLAGS" \
        CFLAGS_FOR_TARGET="$CFLAGS" \
        CXXFLAGS_FOR_TARGET="$CFLAGS" \
        GCJFLAGS="$CFLAGS" \
        CXXFLAGS="$CFLAGS" \
        JCFLAGS="$CFLAGS" \
        ./configure  --prefix=/opt/gcc-3.4.6 --disable-debug


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux