From 8aa9bfb868b6ac714324aa7b461fd1df3970692e Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Sat, 30 Sep 2017 20:52:55 +0200
Subject: [PATCH] BUG: fix packaging macOS

---
 Packaging/Files/macx_pkgsetup.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Packaging/Files/macx_pkgsetup.in b/Packaging/Files/macx_pkgsetup.in
index f1addd12e7..971e79eff3 100755
--- a/Packaging/Files/macx_pkgsetup.in
+++ b/Packaging/Files/macx_pkgsetup.in
@@ -59,9 +59,9 @@ for input_file in $LIB_FILES $BIN_FILES; do
     if [ -f "$input_file" ]; then
       input_file_old_rpaths=$(otool -l "$input_file" | grep -A 3 "LC_RPATH" | grep -oE 'path .* \(offset' | cut -d ' ' -f 2)
       for rpath_old in $input_file_old_rpaths; do
-        $INSTALL_NAME_TOOL "-delete_rpath" "$rpath_old" "$input_file"
+        install_name_tool "-delete_rpath" "$rpath_old" "$input_file"
       done
-      $INSTALL_NAME_TOOL "-add_rpath" "$OUT_DIR/lib" "$input_file"
+      install_name_tool "-add_rpath" "$OUT_DIR/lib" "$input_file"
     fi
 done
 
-- 
GitLab