2003-08-18 17:32:13 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin
|
|
|
|
|
|
|
|
mkdir $out || exit 1
|
|
|
|
mkdir $out/bin || exit 1
|
|
|
|
|
|
|
|
sed \
|
|
|
|
-e s^@OUT\@^$out^g \
|
|
|
|
< $setup > $out/setup || exit 1
|
|
|
|
|
|
|
|
sed \
|
2003-08-27 14:37:38 +02:00
|
|
|
-e 's^@GCC\@^$NIX_CC^g' \
|
2003-08-18 17:32:13 +02:00
|
|
|
< $gccwrapper > $out/bin/gcc || exit 1
|
|
|
|
chmod +x $out/bin/gcc || exit 1
|
2003-08-27 14:37:38 +02:00
|
|
|
ln -s gcc $out/bin/cc || exit 1
|
2003-08-18 17:32:13 +02:00
|
|
|
|
|
|
|
sed \
|
2003-08-27 14:37:38 +02:00
|
|
|
-e 's^@GCC\@^$NIX_CXX^g' \
|
2003-08-18 17:32:13 +02:00
|
|
|
< $gccwrapper > $out/bin/g++ || exit 1
|
|
|
|
chmod +x $out/bin/g++ || exit 1
|
2003-08-27 14:37:38 +02:00
|
|
|
ln -s g++ $out/bin/c++ || exit 1
|
2003-08-18 17:32:13 +02:00
|
|
|
|
2003-08-27 14:37:38 +02:00
|
|
|
cp $ldwrapper $out/bin/ld || exit 1
|
|
|
|
chmod +x $out/bin/ld || exit 1
|