I'm trying to use rpmbuild to build x86-64 packages and libs-32bit package.
The same src rpm is uesd to build both output packages.
What is the arguments to rpmbuild to make package-lib-32bit-Xxx68_64.rpm ?
I currently do this to get a 32-bit package:
CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild -bb -target=i586 package.spec
That gives me package-lib-Xxi586.rpm when I need package-lib-32bit-Xxx86_ 64.rpm .
What arguments get '32bit' added to the package name and named x86_64 ?
for opensuse
install 'build' rpm
CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild -bb --target=i586 package.spec
{
echo package
echo package-devel
} > baselib.conf
/usr/lib/build/mkbaselibs -c /usr/lib/build/baselibs_ global.conf -c baselib.conf /PATH_ TO_ RPMS/.../i586/package*.rpm
[editted to add missing second dash '--' on target parameter to rpmbuild]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.