1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00

* Linker accepts a name for the program.

* Better diagnostics.
This commit is contained in:
Eelco Dolstra 2004-07-06 14:10:09 +00:00
parent 0920fe3038
commit 321be4649d
4 changed files with 10 additions and 7 deletions

View file

@ -2,7 +2,7 @@
mainName=$(basename $main | cut -c34-)
echo "compiling $mainName..."
echo "compiling \`$mainName'..."
# Turn $localIncludes into an array.
localIncludes=($localIncludes)
@ -67,4 +67,5 @@ done
ln -s $main $prefix$mainName
mkdir $out
gcc -Wall -c $prefix$mainName -o $out/$mainName.o
test "$prefix" && cd $prefix
gcc -Wall -c $mainName -o $out/$mainName.o