thanks martin, it seems to run ;)<div><br></div><div>giovanni<br><br><div class="gmail_quote">2012/3/26 Martin Landa <span dir="ltr">&lt;<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
2012/3/26 G. Allegri &lt;<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>&gt;:<br>
<div><div class="h5">&gt; Hi. It&#39;s a long time since I built GRASS on Windows by myself, so forgive my<br>
&gt; dummy questions...<br>
&gt;<br>
&gt; I would like to build grass on windows with debug infos, to debug a couple<br>
&gt; of things (inside the core and a plugin).I suppose I should use the -g flag,<br>
&gt; but I cannot do it from ./configure CFLAGS=&quot;-g&quot;, because it complains:<br>
&gt;<br>
&gt; configure: warning: CFLAGS=-g: invalid host type<br>
&gt; configure: warning: CPPFLAGS=-g: invalid host type<br>
&gt; configure: error: can only configure for one host and one target at a time<br>
&gt;<br>
&gt; What&#39;s the best place to declare it? I have little experience with<br>
&gt; Autotools...<br>
<br>
</div></div>declare it mswindows/osgeo4w/package.sh [1]. Eg.<br>
<br>
CFLAGS=&quot;-g -Wall&quot; \<br>
            CXXFLAGS=&quot;-g -Wall&quot;  \<br>
            ./configure \<br>
            ...<br>
<br>
I hope it helps, Martin<br>
<br>
[1] <a href="http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/osgeo4w/package.sh#L108" target="_blank">http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/osgeo4w/package.sh#L108</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Martin Landa &lt;landa.martin <a href="http://gmail.com" target="_blank">gmail.com</a>&gt; * <a href="http://geo.fsv.cvut.cz/~landa" target="_blank">http://geo.fsv.cvut.cz/~landa</a><br>
</font></span></blockquote></div><br></div>