<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 12, 2014 at 9:38 AM, Dusty Mabe <span dir="ltr"><<a href="mailto:dustymabe@gmail.com" target="_blank">dustymabe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sat, Apr 12, 2014 at 12:37 AM, Dave Johansen <<a href="mailto:davejohansen@gmail.com">davejohansen@gmail.com</a>> wrote:<br>

><br>
> I did a little googling and found this: <a href="http://stackoverflow.com/questions/130740/link-error-when-compiling-gcc-atomic-operation-in-32-bit-mode" target="_blank">http://stackoverflow.com/questions/130740/link-error-when-compiling-gcc-atomic-operation-in-32-bit-mode</a><br>

> It looks like I need to build the .rpm with a flag that specifies a newer architecture than i386. Is that something I can/should put in the .spec file? Or is it just a flag that I need to pass when calling rpmbuild?<br>

<br>
</div>The --target option may be what you are looking for:<br>
<br>
    rpmbuild -ba --target=i686 rpm.spec<br>
<br>
You can replace i686 with what you need.<br></blockquote></div><br></div><div class="gmail_extra">I noticed that a conditional in the .spec file could be used to add -march=i486 to CFLAGS and CXXFLAGS, if I wanted it to be self contained, but I like that --target solution better and I will go with that.<br>
<br>Thanks,<br>Dave<br></div></div>