Skip to content

Commit

Permalink
get install_name_tool help
Browse files Browse the repository at this point in the history
  • Loading branch information
miracelwhipp committed Apr 5, 2024
1 parent 48bd301 commit 8bea1f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ if [ "$2" = "osx" ]; then
echo install_name_tool -add_rpath '@executable_path/../lib' "$bin_rel" && install_name_tool -add_rpath '@executable_path/../lib' "$bin_rel"
done

for library in $(ls pgsql/lib)
for library in $(ls pgsql/lib/*.dylib)
do
lib_rel=pgsql/lib/$library
echo "modifying lib_rel"
echo install_name_tool -id "@rpath/$library" "$lib_rel" && install_name_tool -id "@rpath/$library" "$lib_rel"
install_name_tool -id "@rpath/$library" "$lib_rel"

for binary in $(ls pgsql/bin/)
do
bin_rel=pgsql/bin/$binary
echo install_name_tool -change "$library" "@rpath/$library" "$bin_rel" && install_name_tool -change "$library" "@rpath/$library" "$bin_rel"
install_name_tool -change "$library" "@rpath/$library" "$bin_rel"
done
done

Expand Down

0 comments on commit 8bea1f1

Please sign in to comment.