nixpkgs/pkgs/baseenv/baseenv-build.sh
Eelco Dolstra d343a357f1 * Added GCC (C and C++ variant; include libstdc++).
svn path=/nixpkgs/trunk/; revision=314
2003-08-18 17:49:30 +00:00

29 lines
427 B
Bash
Executable file

#! /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
gcc='$NIX_CC'
sed \
-e s^@GCC\@^$gcc^g \
< $gccwrapper > $out/bin/gcc || exit 1
chmod +x $out/bin/gcc || exit 1
ln -s gcc $out/bin/cc
gcc='$NIX_CXX'
sed \
-e s^@GCC\@^$gcc^g \
< $gccwrapper > $out/bin/g++ || exit 1
chmod +x $out/bin/g++ || exit 1
ln -s g++ $out/bin/c++