26 lines
529 B
Plaintext
Executable File
26 lines
529 B
Plaintext
Executable File
cd $tmpdir
|
|
|
|
# Downloading binutils sources
|
|
if [ ! -f "$binutils" ]; then
|
|
echo "Downloading binutils sources..."
|
|
wget $binutilsmirror/$binutils
|
|
tar -xf $binutils
|
|
fi
|
|
|
|
# Configure Binutils
|
|
|
|
if [ ! -d "${binutilssrcdir}-build" ]; then
|
|
mkdir ${binutilssrcdir}-build
|
|
fi
|
|
|
|
cd ${binutilssrcdir}-build
|
|
../$binutilssrcdir/configure --prefix=$freondir --enable-shared
|
|
|
|
make tooldir=$freondir -j$corecount
|
|
|
|
make tooldir=$freondir install
|
|
|
|
cp -v ../$binutilssrcdir/include/libiberty.h $freondir/include
|
|
|
|
cd $tmpdir
|