mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-12 11:17:11 +01:00
finished set_library_path for MacOS .app build
This commit is contained in:
parent
40e2564ef9
commit
7ad616d62b
@ -1,14 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Options
|
||||
WANTED_LIB=$1
|
||||
NEW_PATH=$2
|
||||
EXEC=$3
|
||||
|
||||
# Function to extract the first element of a space seperated list
|
||||
get_first_arg() {
|
||||
echo $1
|
||||
}
|
||||
|
||||
CURRENT_RPATH=$(get_first_arg $(otool -L $EXEC | grep $WANTED_LIB))
|
||||
# Get current path
|
||||
CURRENT_PATH=$(get_first_arg $(otool -L $EXEC | grep $WANTED_LIB))
|
||||
|
||||
echo $CURRENT_RPATH
|
||||
# Change to the new path
|
||||
install_name_tool -change $CURRENT_PATH $NEW_PATH $EXEC
|
Loading…
Reference in New Issue
Block a user