����� ������������ OpenNet.ru / ������ "������������ ��� Linux" / ������

11.1.5 ������ ��� ������ ��������

����� --target ����������� rpmbuild �� ������ ��� ���������, �������� �� �������. ���������� ������ ������������� ���������:

rpmbuild -bi --target i486-redhat-linux

������� ������ - ���������-������-������������_�������. ��������, ������ i686-redhat-linux ������ ������ ��� ���������� i686, ������������ ������� Red Hat Linux. ����� --target ������ ����������� �� ����� ������ ������� ������. ��� ��������, ��� �� ������ ������ --target ����������� �������� ��������� ��������, ����� ��� %_target, %_target_arch, � %_target_os . ������, ������� ������������ ����������� ������������. ��, �� ����� ����, �� ����� ������� ����������� ���� PowerPC �� ���������� Intel ��� �����-�����������, �� ���� ������ �����������, ������� ����� �������� �������� ������ ��� ������� ��������� �� ������ ���������.

���� ����������� ������� ��, ������������ ��������������� �������� � ����� GNU ��� ������������ ������, ��������� ��� --target ����� ������������. ��������, ���� �������� ������� ����� jikes � ����� ������ ppc-ibm-aix, �� ������ ������������� ����, ��� ��� �������
configure ���������, ��� ������ ���������� �� Linux � ���������� i686 :

$ rpmbuild -bc --target ppc-ibm-aix
/usr/src/redhat/SPECS/jikes.spec

Building target platforms: ppc-ibm-aix

Building for target ppc-ibm-aix

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.94955

+ umask 022

+ cd /usr/src/redhat/BUILD

+ LANG=C

+ export LANG

+ cd /usr/src/redhat/BUILD

+ rm -rf jikes-1.17

+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/jikes-1.17.tar.gz

+ tar -xf -

+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd jikes-1.17

++ /usr/bin/id -u

+ '[' 500 = 0 ']'

++ /usr/bin/id -u

+ '[' 500 = 0 ']'

+ /bin/chmod -Rf a+rX,g-w,o-w .

+ exit 0

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.15710

+ umask 022

+ cd /usr/src/redhat/BUILD

+ cd jikes-1.17

+ LANG=C

+ export LANG

+ ./configure CXXFLAGS=-O3 --prefix=/tmp/jikesrpm/usr

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for gawk... gawk

checking whether make sets ${MAKE}... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking for g++... g++

��� ����� ������ �� ������������ ��������, ������ ���������� ��� �������� ���������, �� ������ configure ������ ���������� ����������� ��� ������� ���������.

����� - ����� ��� ������ � tar-��������
����� - �������
����������


����� ������������ �� OpenNet.ru