Mail Archives: djgpp/2004/10/01/09:48:47
On Friday 01 October 2004 11:40, Tristan Miller wrote:
> Greetings.
>
> I'm unable to compile djgpp (gcc-3.4.2) as a cross-compiler on my SuSE
> i686-pc-linux-gnu system running gcc-3.3.2. As I'm not sure if this is a
> gcc bug or a djgpp bug, I have reported it on the gcc Bugzilla and am
> posting a CC here.
>
Known "trap" when building DJGPP targetted cross-compiler.
Directory $prefix/lib/gcc/$target/$version must exist when building it.
I'm including a script which I used to build gcc-3.4.2 as cross-compiler
from Linux to DJGPP. Sources were before that unpacked and modified
for DJGPP using script unpack-gcc.sh from gcc342s2.zip
Andris
------------------------------------------------------------------------------------
#! /bin/sh
VER=3.4.2
PREFIX=/usr
TARGET=i586-pc-msdosdjgpp
DVER=`echo $VER | sed -e 's#\.##2g'`
TOP=`pwd`
SRC=$TOP/gnu/gcc-$DVER
test -d djcross || mkdir djcross || exit 1
cd djcross || exit 1
if ! [ -d $PREFIX/lib/gcc/$TARGET/$VER ] ; then
if ! mkdir -p $PREFIX/lib/gcc/$TARGET/$VER ; then
echo "Failed to create directory $PREFIX/lib/gcc/$TARGET/$VER"
echo "Please create it. You may need root permissions for that"
exit 1
fi
fi
$SRC/configure --prefix=$PREFIX \
--host=`sh $SRC/config.guess` \
--target=$TARGET \
--disable-nls \
--enable-version-specific-runtime-libs \
--enable-languages=c,c++,f77,objc || exit 1
make
- Raw text -