<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Dan,<br>
<br>
Actually, that did not work, either from tcsh using setenv CFLAGS "-g3"
or from bash using export CFLAGS="-g3". configure picks up the new
definition of CFLAGS from the environment but make uses the original
definition, i.e. "-g -O2". This was driving me nuts because ddd/gdb
jumps all over the place and it is hard to tell which instruction is
being executed. <br>
<br>
I had to go to my top level directory, export CFLAGS and run my adapted
build script:<br>
./util/modular/build_jk.sh
/share/RnD/linux/WorkingDirectories/john/X11R7/modular<br>
<br>
I used bash but I'm pretty sure tcsh would work as well. <br>
</tt><br>
Whoever is maintaining  <br>
<a class="moz-txt-link-freetext"
 href="http://wiki.x.org/wiki/DevelopersPages">http://wiki.x.org/wiki/DevelopersPages</a>
<br>
<a class="moz-txt-link-freetext"
 href="http://wiki.x.org/wiki/ModularDevelopersGuide">http://wiki.x.org/wiki/ModularDevelopersGuide</a>
<br>
might consider adding this kind of thing to make life a little easier
for people using the modular build process for the first time. I assume
the modular system was a team effort and the members of the team knew
what each other were doing but practically none of that knowledge found
its way into the documentation. Both documents are perfunctory at best.
<br>
<br>
Best regards,<br>
<br>
John<br>
<br>
Dan Nicholson wrote:
<blockquote
 cite="mid91705d080708071511m301624fdq4d7d863f0b067b50@mail.gmail.com"
 type="cite">
  <pre wrap="">On 8/7/07, John Klingler <a class="moz-txt-link-rfc2396E" href="mailto:john@jupiter.com"><john@jupiter.com></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Is there a way to override CFLAGS in the modular build process?
Editing Makefile doesn't work.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The configure scripts generated by autoconf will respect CFLAGS from
the environment.

$ export CFLAGS="-O2 -pipe"
$ ./configure ...

So, you should just be able to set them in the environment.

--
Dan

  </pre>
</blockquote>
</body>
</html>