diff options
author | khorben <khorben@pkgsrc.org> | 2017-11-12 16:41:40 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2017-11-12 16:41:40 +0000 |
commit | 4a26aef3d9d7f721596125967f9c81527411d7ee (patch) | |
tree | 2733260b1662ab798957ee008c192672f61d26e7 /mk | |
parent | 249a6ab33c549e16f14f60bb374252118ae82ba3 (diff) | |
download | pkgsrc-4a26aef3d9d7f721596125967f9c81527411d7ee.tar.gz |
Look for ar(1) in $_ORIG_PATH with PKGSRC_MKREPRO
This no longer hard-codes the path to ar(1) as /usr/bin/ar. It is not
possible to use the original value of $TOOLS_PATH.ar as it is usually
not set.
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/repro/ar | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/repro/ar b/mk/repro/ar index 69878dca680..c25e71bdfaa 100755 --- a/mk/repro/ar +++ b/mk/repro/ar @@ -1,11 +1,13 @@ #!/bin/sh +PATH="$_PATH_ORIG" + if [ $# -ge 2 ]; then args="$1" mod="$2" shift 2 - exec /usr/bin/ar "$mod$args" "$@" + exec ar "$mod$args" "$@" else - exec /usr/bin/ar "$@" + exec ar "$@" fi |