[CentOS-devel] Issue with 32-bit build of devtoolset 1.1?
Dave Johansen
davejohansen at gmail.comMon Apr 14 15:29:46 UTC 2014
- Previous message: [CentOS-devel] Issue with 32-bit build of devtoolset 1.1?
- Next message: [CentOS-devel] centos variant ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Apr 12, 2014 at 9:38 AM, Dusty Mabe <dustymabe at gmail.com> wrote: > On Sat, Apr 12, 2014 at 12:37 AM, Dave Johansen <davejohansen at gmail.com> > wrote: > > > > 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? > > The --target option may be what you are looking for: > > rpmbuild -ba --target=i686 rpm.spec > > You can replace i686 with what you need. > 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. Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20140414/0a126306/attachment-0001.html>
- Previous message: [CentOS-devel] Issue with 32-bit build of devtoolset 1.1?
- Next message: [CentOS-devel] centos variant ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS-devel mailing list