| Tim Windelschmidt | 5d357d8 | 2025-07-10 18:47:15 +0200 | [diff] [blame] | 1 | diff --git a/src/BUILD b/src/BUILD |
| 2 | index f61b90738a..2c3a54d36c 100644 |
| 3 | --- a/src/BUILD |
| 4 | +++ b/src/BUILD |
| 5 | @@ -38,12 +38,12 @@ md5_cmd = "set -e -o pipefail && %s $(SRCS) | %s | %s > $@" |
| 6 | }) + embedded_tools_target, |
| 7 | outs = ["install_base_key" + suffix], |
| 8 | cmd = select({ |
| 9 | - "//src/conditions:darwin": md5_cmd % ("/sbin/md5", "/sbin/md5", "head -c 32"), |
| 10 | - "//src/conditions:freebsd": md5_cmd % ("/sbin/md5", "/sbin/md5", "head -c 32"), |
| 11 | + "//src/conditions:darwin": md5_cmd % ("@md5sum@", "@md5sum@", "head -c 32"), |
| 12 | + "//src/conditions:freebsd": md5_cmd % ("@md5sum@", "@md5sum@", "head -c 32"), |
| 13 | # We avoid using the `head` tool's `-c` option, since it does not exist |
| 14 | # on OpenBSD. |
| 15 | - "//src/conditions:openbsd": md5_cmd % ("/bin/md5", "/bin/md5", "dd bs=32 count=1"), |
| 16 | - "//conditions:default": md5_cmd % ("md5sum", "md5sum", "head -c 32"), |
| 17 | + "//src/conditions:openbsd": md5_cmd % ("@md5sum@", "@md5sum@", "dd bs=32 count=1"), |
| 18 | + "//conditions:default": md5_cmd % ("@md5sum@", "@md5sum@", "head -c 32"), |
| 19 | }), |
| 20 | ) for suffix, embedded_tools_target in { |
| 21 | "_jdk_allmodules": [":embedded_tools_jdk_allmodules"], |
| 22 | |