still trying to cross-compile a src rpm

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

 



  despite a couple of pointers i got here earlier, i'm stilll unable to convince
"rpmbuild" to cross-compile a source rpm i have.

  based on an earlier email, i added the following to my personal .rpmmacros
file:

%__ar                   %{_cross_compile}ar
%__as                   %{_cross_compile}as
%__cc                   %{_cross_compile}gcc
%__cpp                  %{_cross_compile}gcc -E
%__cxx                  %{_cross_compile}g++
%__ld                   %{_cross_compile}ld
%__nm                   %{_cross_compile}nm
%__objcopy              %{_cross_compile}objcopy
%__objdump              %{_cross_compile}objdump
%__ranlib               %{_cross_compile}ranlib
%__remsh                %{__rsh}
%__strip                %{_cross_compile}strip
%__size                 %{_cross_compile}size

("rpmbuild --showrc" verifies that these are bring set.)


  and my rpmbuild command looks like:

  $ rpmbuild --define="_cross_compile ppc_8xx-" -bb <spec file>

i also added "--target=powerpc-linux" to the command, with no effect.
any hints?  all i get is the standard i386-based binary rpm being built,
with only the default "gcc" being called throughout the build process.

rday



_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux