Re: rpmbuild --target=i686 on x86_64 fails in configure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 14, 2012 at 17:27, Zoltan Boszormenyi <zboszor@xxxxxxxxxxx> wrote:
> 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 ...
>
> and
>
> 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.

I always used to use setarch as well: "setarch i386 rpmbuild -ba
--target=i686 foo.spec"

That should fool the configure script into 32bit.

-- 
There are 10 kinds of people in the world: Those who understand binary
and those who don't...
-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux