ALT Linux Community general discussions
 help / color / mirror / Atom feed
* Re: [Comm] Сборка кросс-компилятора
  @ 2006-06-23  4:38 ` rs
  0 siblings, 0 replies; only message in thread
From: rs @ 2006-06-23  4:38 UTC (permalink / raw)
  To: gosha, ALT Linux Community

Здравствуйте, gosha.

Вы писали 23 июня 2006 г., 12:24:26:

> Сборка кросс-компилятора

> --------------------------------------------------------------------------------

> Пробую собрать кросс-компилятор 4.1.1 хост=i686-pc-linux/ target=mips-linux :

> TARGET=mips-linux

> PREFIX=/opt/mips

> SYSROOT=/usr/local/mips

> export ARCH=mips32

> export CROSS_COMPILE=/usr/local/mips/bin/mips-linux-

> export PATH=$PATH:/usr/local/mips/bin




> ../gcc-4.1.1/configure --host=i586-mandrake-linux-gnu
> --target=$TARGET --prefix=$PREFIX --program-prefix=mips-linux- \

>         --with-elf --with-headers=/usr/mips/include
> --with-libs=/usr/mips/lib --with-sysroot=${SYSROOT}
> --with-build-sysroot=${SYSROOT} \

>         --disable-nls --with-arch=mips32 --enable-threads=posix \

>         --enable-languages="c,c++" \

>         --enable-shared=posix --enable-bigendian \

>         --disable-profile --enable-rpath --enable-c99
> --with-gnu-as=mips-linux-as --with-gnu-ld=mips-linux-ld




> make 

> make install

> ----------------------------------------------------------------

> После сборки компилятора получаю выыполняемые файлы:

> mips-linux-gcc

> mips-linux-gccbug

> mips-linux-gcov

> mips-linux-g++

> mips-linux-cpp




> Как я понимаю, файлы

> mips-linux-as

> mips-linux-ar

> mips-linux-ld

> mips-linux-ranlib

> берем из комплекта скомпилированных binutil




> При последующей сборке библиотек вместо кросс-ассемблера mips-linux-as

> gcc вызывает хостовый ассемблер as (без префикса) и то же для всего комплекта файлов binutil

> Это означает, что 2 ассемблера у меня на хосте не уживутся. Как победить?

прописать в Makefile для сборки библиотек CROSS_COMPILE=mips-linux- и
в PATH добавить путь до mips-linux-*


____________________________ 
С уважением,
 системный администратор
 СГТУ, каф."Системотехника"
 AND
 ЗАО "Тесар-СО",
 Егоров Стас
 ICQ:270805968
 mailto:rs@sstu.ru



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-23  4:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-23  4:38 ` [Comm] Сборка кросс-компилятора rs

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git