On Sat, Apr 12, 2014 at 12:37 AM, Dave Johansen <davejohansen@gmail.com> wrote:The --target option may be what you are looking for:
>
> I did a little googling and found this: http://stackoverflow.com/questions/130740/link-error-when-compiling-gcc-atomic-operation-in-32-bit-mode
> 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?
rpmbuild -ba --target=i686 rpm.spec
You can replace i686 with what you need.