mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
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 <dgoulet@torproject.org>
This commit is contained in:
parent
925ec0e0ea
commit
f47c6c3d1b
2
changes/ticket40369
Normal file
2
changes/ticket40369
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
o Minor feature (build, cross-compilation):
|
||||||
|
- Allow a custom ar for cross-compilation purposes. Closes ticket 40369.
|
@ -25,7 +25,7 @@ for input in "$@"; do
|
|||||||
dir="$TMPDIR"/$(basename "$input" .a)
|
dir="$TMPDIR"/$(basename "$input" .a)
|
||||||
mkdir "$dir"
|
mkdir "$dir"
|
||||||
cd "$dir">/dev/null
|
cd "$dir">/dev/null
|
||||||
ar x "$abs"
|
"${AR:-ar}" x "$abs"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd "$TMPDIR" >/dev/null
|
cd "$TMPDIR" >/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user