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:
parent
0920fe3038
commit
321be4649d
4 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue