patch for configure.in to set cflags for gdb
Doug Alcorn (doug@lathi.net)
23 Apr 2001 23:42:11 -0400
--=-=-=
Right now there's no good way to turn off code optimization using
configure. It seems like the '--enable-gdb' option should disable
"-O2". I know that if you are actually using gdb you can debug
optimized code. I just don't find this sane however. Therefore, this
patch. Use it or drop it. No matter to me. It is against cvs co
afterstep-stable as of Mon Apr 23 23:29:32 EDT 2001
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=lathi.gdb-cflags.patch
Content-Description: turn off optimized code while compiling for gdb
diff -N -u -r afterstep-stable.orig/autoconf/configure.in afterstep-stable/autoconf/configure.in
--- afterstep-stable.orig/autoconf/configure.in Mon Apr 23 23:37:22 2001
+++ afterstep-stable/autoconf/configure.in Mon Apr 23 23:37:55 2001
@@ -117,6 +117,8 @@
if test "x$enable_gdb" = "xyes"; then
CFLAGS="$CFLAGS -g"
+dnl# It doesn't make sense to have -O2 when you are doing -g
+ CFLAGS=`echo $CFLAGS | sed 's/-O2//'`
LDFLAGS="$LDFLAGS -g"
fi
--=-=-=
--
(__) Doug Alcorn <doug@lathi.net> http://www.lathi.net chat:lathinet@yahoo|aol
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.
--=-=-=--
_______________________________________________
The AfterStep Window Manager for X User's Mailing List
http://mail.afterstep.org/mailman/listinfo/as-users