Red Hat Bugzilla – Bug 158221
rpmbuild --target ppc64 builds ppc32 binaries
Last modified: 2010-06-07 01:12:13 EDT
+++ This bug was initially created as a clone of Bug #146155 +++
Description of problem:
Running rpmbuild --target ppc64 builds ppc32 objects but puts them in /lib64 and
calls the rpm a .ppc64.rpm. I seems CFLAGS and/or RPM_OPT_FLAGS are not being
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Grab any SRPM for which we ship a ppc64 package (eg: pcre)
2. run rpmbuild -bb --target ppc64 pcre.spec
rpmbuild creates a .ppc64.rpm containing 32-bit libraries in /usr/lib64
If it builds a ppc64 package the package should contain 64-bit objects
-m64 is used with RHEL4U2 at least AFAICT.
Also I believe (for better or worse) rpmbuild defaults to ppc64
on our powerpc os currently too FWIW.
*** Bug 167834 has been marked as a duplicate of this bug. ***
This problem is like fixed (by setting arch from --target) in rpm-4.4.7-0.15.