Build RPMs for i686 rather than i386
The default target (i386-linux) causes flags like "-march i386" to be added, which breaks on recent Fedora releases (18 and up), resulting in errors like: /usr/lib/gcc/i686-redhat-linux/4.7.2/../../../../include/c++/4.7.2/ext/atomicity.h:48: undefined reference to `__atomic_fetch_add_4' So set the target to i686-linux. http://hydra.nixos.org/build/6567357
This commit is contained in:
parent
c085d63a9d
commit
4747796a9e
@ -514,7 +514,8 @@ rec {
|
|||||||
|
|
||||||
echo "%_topdir $rpmout" >> $HOME/.rpmmacros
|
echo "%_topdir $rpmout" >> $HOME/.rpmmacros
|
||||||
|
|
||||||
rpmbuild -vv -ta "$srcName"
|
if [ `uname -m` = i686 ]; then extra="--target i686-linux"; fi
|
||||||
|
rpmbuild -vv $extra -ta "$srcName"
|
||||||
|
|
||||||
eval "$postBuild"
|
eval "$postBuild"
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user