mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-03 13:24:46 +01:00
Added missing file
This commit is contained in:
parent
ca657c8ca8
commit
49cf6944f0
16
macos/delete_rpath.sh
Normal file
16
macos/delete_rpath.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Options
|
||||
RPATH_NAME=$1
|
||||
EXEC=$2
|
||||
|
||||
# Function to keep only the second arg
|
||||
get_second_arg() {
|
||||
echo $2
|
||||
}
|
||||
|
||||
# Get current rpath
|
||||
WANTED_RPATH=$(get_second_arg $(otool -l $EXEC | grep $RPATH_NAME | grep path))
|
||||
|
||||
install_name_tool -delete_rpath $WANTED_RPATH $EXEC
|
Loading…
x
Reference in New Issue
Block a user