Commit f47c6c3d authored by emery's avatar emery Committed by Nick Mathewson
Browse files

scripts/build/combine_libs: use $AR rather than ar



Using a custom ar at $AR may be necessary for cross-compilation.

Closes #40369

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent 925ec0e0
Loading
Loading
Loading
Loading

changes/ticket40369

0 → 100644
+2 −0
Original line number Diff line number Diff line
  o Minor feature (build, cross-compilation):
    - Allow a custom ar for cross-compilation purposes. Closes ticket 40369.
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ for input in "$@"; do
    dir="$TMPDIR"/$(basename "$input" .a)
    mkdir "$dir"
    cd "$dir">/dev/null
    ar x "$abs"
    "${AR:-ar}" x "$abs"
done

cd "$TMPDIR" >/dev/null