+++ 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 set correctly. Version-Release number of selected component (if applicable): rpm-4.3.3-7_nonptl How reproducible: Always Steps to Reproduce: 1. Grab any SRPM for which we ship a ppc64 package (eg: pcre) 2. run rpmbuild -bb --target ppc64 pcre.spec 3. Actual results: rpmbuild creates a .ppc64.rpm containing 32-bit libraries in /usr/lib64 Expected results: If it builds a ppc64 package the package should contain 64-bit objects Additional info:
-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. UPSTREAM