rpmbuild --target=i686 on x86_64 fails in configure
dan at danny.cz
Sat Apr 14 16:38:06 UTC 2012
Zoltan Boszormenyi píše v So 14. 04. 2012 v 18:27 +0200:
> 2012-04-14 17:20 keltezéssel, John Reiser írta:
> >> What should I do to make rpmbuild work for --target=i686?
> > Does this work:
> > export CC="gcc -m32"
> > rpmbuild -ba --target=i686 ...
> Yes, it does. Although I still get signs that rpmbuild wants to build
> x86_64 binaries:
> + ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu ...
> checking for x86_64-unknown-linux-gnu-gcc... gcc -m32
> but the resulting binary rpm is suffixed as i686.rpm and
> the shard libs are 32-bit.
rpmbuild doesn't support cross-compiles, it may or may not work, the
recommended way is to use mock, then you will get clean packages
More information about the test