70c2f444e3
Old versions of libtool for OpenBSD insist on adding the `-t` flag to ranlib, which updates the timestamp. llvm-ranlib does not support `-t` and as no plans to do so [1], since it makes builds less reproducable. OpenBSD upstream deals with this by patching ranlib to ignore the `-t` flag [2]. Instead of writing patches for all LLVM versions or re-running `autoreconf` on all packages that use libtool, we can wrap ranlib to ignore the flag. [1]: https://github.com/llvm/llvm-project/issues/57129 [2]: https://github.com/openbsd/src/commit/d00990cc11fce25520b9dde416bb8cf50990e992
17 lines
240 B
Bash
17 lines
240 B
Bash
#! @shell@
|
|
# shellcheck shell=bash
|
|
|
|
args=()
|
|
for p in "$@"; do
|
|
case "$p" in
|
|
-t)
|
|
# Skip, LLVM ranlib doesn't support
|
|
;;
|
|
*)
|
|
args+=("$p")
|
|
;;
|
|
esac
|
|
done
|
|
|
|
@prog@ "${args[@]}"
|