<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="+1">I am working on a GPL open source research
        project RefPerSys (<a moz-do-not-send="true"
          href="https://gitlab.com/bstarynk/refpersys">https://gitlab.com/bstarynk/refpersys</a>)
        that uses OMake. OMake's dependency analysis using MD5 digests
        is essential for our project.</font></p>
    <font size="+1"> </font>
    <p><font size="+1">In our OMakefile, we have an <tt>`OPTIMFLAGS`</tt>
        variable that specifies the default GCC optimisation flags. The
        behaviour that we are looking for is to override the `<tt>OPTIMFLAGS`</tt>
        variable from the command line, in a manner similar to
        Makefiles.</font></p>
    <font size="+1"> </font>
    <p><font size="+1">What we have observed is that OMake seems to
        ignore the
        <tt> `OPTIMFLAGS`</tt> variable passed through the command line
        when it is already specified in the OMakefile.</font></p>
    <font size="+1">In our OMakefile (<a moz-do-not-send="true"
        href="https://gitlab.com/bstarynk/refpersys/blob/master/OMakefile">https://gitlab.com/bstarynk/refpersys/blob/master/OMakefile</a>),
      line 63, we have `<code>OPTIMFLAGS = -O0 -g3`. However, when we
        run `omake clean` followed by `</code><code>omake
        "OPTIMFLAGS='-O0 -fno-inline -DONTWANTOPTIMS -g3'" --verbose, we
        note that `OPTIMFLAGS` is still set as `-O0 -g3` and not `O0
        -fno-inline -DONTWANTOPTIMS -g3` as anticipated.<br>
      </code></font>
    <p><font size="+1">Is this the expected behaviour? And if so, is
        there a way to achieve what we have in mind, i.e., overriding
        OMakefile variables through the command line?</font></p>
    <font size="+1"> </font>
    <p><font size="+1">Thank you for your time and consideration.</font></p>
    <font size="+1"> </font>
    <p><font size="+1">Sincerely,<br>
      </font> </p>
    <font size="+1"> </font>
    <pre class="moz-signature" cols="72">Abhishek Chakravarti
<a class="moz-txt-link-abbreviated" href="mailto:abhishek@taranjali.org">abhishek@taranjali.org</a> | +91 9836 8529 39
Kolkata | India</pre>
  </body>
</html>