mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
15 lines
242 B
Bash
15 lines
242 B
Bash
. $stdenv/setup
|
|
|
|
objs=
|
|
for i in $objects; do
|
|
obj=$(echo $i/*.o)
|
|
objs="$objs $obj"
|
|
done
|
|
|
|
echo "archiving object files into library \`$libraryName'..."
|
|
|
|
outPath=$out/lib${libraryName}.a
|
|
|
|
mkdir $out
|
|
ar crs $outPath $objs
|
|
ranlib $outPath
|