We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e59f8 commit d678406Copy full SHA for d678406
tools/fixup-wheels.sh
@@ -82,10 +82,12 @@ fixup_wheel_macosx () {
82
83
# Change the name to be local
84
install_name_tool -id "$lib" $lib
85
- if otool -L $lib | grep -q /usr/local/lib/librdkafka.1.dylib ; then
+ # Extract existing(old) reference
86
+ old=$(otool -L $lib | grep -o '.*librdkafka.1.dylib' | xargs)
87
+ if [[ ! -z "$old" ]]; then
88
# Change the librdkafka reference to load from the same
89
# directory as the plugin
- install_name_tool -change /usr/local/lib/librdkafka.1.dylib '@loader_path/librdkafka.1.dylib' $lib
90
+ install_name_tool -change "$old" '@loader_path/librdkafka.1.dylib' $lib
91
otool -L $lib
92
else
93
echo "WARNING: couldn't find librdkafka reference in $lib"
0 commit comments