More work on MacOS and the scheduler

This commit is contained in:
AlexandreRouma
2021-11-15 17:15:59 +01:00
parent 0ab4d16f9d
commit 40e2564ef9
7 changed files with 200 additions and 33 deletions

14
macos/set_library_path.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e
WANTED_LIB=$1
NEW_PATH=$2
EXEC=$3
get_first_arg() {
echo $1
}
CURRENT_RPATH=$(get_first_arg $(otool -L $EXEC | grep $WANTED_LIB))
echo $CURRENT_RPATH