Skip to content

Commit

Permalink
CI: Fix OSX 11 & 12 tarballs not containing dependencies
Browse files Browse the repository at this point in the history
The dependencies are under /opt/homebrew in the build machine that
builds for OSX arm64, and under /usr/local in the other build machines.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Aug 11, 2023
1 parent b6028fd commit a015afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CI/azure/macos_tar_fixup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ln -fs "../../../${libiioheader_loc}" usr/local/include/iio.h
install_name_tool -add_rpath @loader_path/. "${libiio_loc}"

# Copy dependent libs to local libs, and update rpath of dependencies
for each in $(otool -L "${libiio_loc}" |grep homebrew |cut -f2 | cut -d' ' -f1) ; do
for each in $(otool -L "${libiio_loc}" |grep '\/usr\/local\|homebrew' |cut -f2 | cut -d' ' -f1) ; do
name=$(basename "${each}")
cp "${each}" "${deps_dir}"
chmod +w "${deps_dir}/${name}"
Expand Down

0 comments on commit a015afe

Please sign in to comment.