summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorAndrew Childs <lorne@cons.org.nz>2020-11-19 17:18:44 +0900
committerAndrew Childs <lorne@cons.org.nz>2021-05-17 00:27:01 +0900
commitc696fcdacb04d382ae95f0581d293bd40540d871 (patch)
tree8835805b660ae327c6404234586c331003e475dd /pkgs/build-support
parent9fb892438995607d651663821f7848ec56a54c7b (diff)
downloadnixpkgs-c696fcdacb04d382ae95f0581d293bd40540d871.tar
nixpkgs-c696fcdacb04d382ae95f0581d293bd40540d871.tar.gz
nixpkgs-c696fcdacb04d382ae95f0581d293bd40540d871.tar.bz2
nixpkgs-c696fcdacb04d382ae95f0581d293bd40540d871.tar.lz
nixpkgs-c696fcdacb04d382ae95f0581d293bd40540d871.tar.xz
nixpkgs-c696fcdacb04d382ae95f0581d293bd40540d871.tar.zst
nixpkgs-c696fcdacb04d382ae95f0581d293bd40540d871.zip
fixDarwinDylibNames: set name of install_name_tool
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh b/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh
index af2ff0cc966..55e196e654d 100644
--- a/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh
+++ b/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh
@@ -23,7 +23,7 @@ fixDarwinDylibNames() {
     for fn in "$@"; do
         if [ -L "$fn" ]; then continue; fi
         echo "$fn: fixing dylib"
-        int_out=$(install_name_tool -id "$fn" "${flags[@]}" "$fn" 2>&1)
+        int_out=$(@targetPrefix@install_name_tool -id "$fn" "${flags[@]}" "$fn" 2>&1)
         result=$?
         if [ "$result" -ne 0 ] &&
             ! grep "shared library stub file and can't be changed" <<< "$out"