<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body>
Yes, I've done this, but what can I put to macros for<br>
%_arch                  ? <br>
<br>
It works when I set __global_cflags on last /usr/lib/rpm/redhat/macros<br>
to $CFLAGS.<br>
<br>
michal<br>
<br>
<br>
Alexander Dalloz wrote:
<blockquote cite="mid1078746845.10314.18.camel@sirendipity.dogma.lan"
 type="cite">
  <pre wrap="">Am Mo, den 08.03.2004 schrieb Michal Zeravik um 12:43:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

how can I set custom cflags for rebuilding src.rpm?
/usr/lib/rpm/rpmrc neither CFLAGS seems to not affecting cflags when I 
use --target=athlon.


Michal
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Edit /usr/lib/rpm/athlon-linux/macros with i.e.:

%optflags               -O3 -g -pipe -fno-exceptions -funroll-loops
-fomit-frame-pointer -fno-strict-aliasing -fno-common

or what you like as CFLAGS.

Alexander


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