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,9 +2,11 @@
|
|||
|
||||
objs=
|
||||
for i in "$objects"; do
|
||||
obj=$i/*.o
|
||||
obj=$(echo $i/*.o)
|
||||
objs="$objs $obj"
|
||||
done
|
||||
|
||||
echo "linking object files into \`$programName'..."
|
||||
|
||||
mkdir $out
|
||||
gcc -o $out/program $objs
|
||||
gcc -o $out/$programName $objs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue