fixDarwinDylibNames: Use new hook mechanism
This commit is contained in:
parent
be330c47eb
commit
ae18038c6d
@ -10,6 +10,8 @@
|
|||||||
# their absolute path (using "install_name_tool -id"). It also
|
# their absolute path (using "install_name_tool -id"). It also
|
||||||
# rewrites references in other dylibs to absolute paths.
|
# rewrites references in other dylibs to absolute paths.
|
||||||
|
|
||||||
|
postFixupHooks+=('fixDarwinDylibNamesIn $prefix')
|
||||||
|
|
||||||
fixDarwinDylibNames() {
|
fixDarwinDylibNames() {
|
||||||
local flags=()
|
local flags=()
|
||||||
local old_id
|
local old_id
|
||||||
@ -29,7 +31,3 @@ fixDarwinDylibNamesIn() {
|
|||||||
local dir="$1"
|
local dir="$1"
|
||||||
fixDarwinDylibNames $(find "$dir" -name "*.dylib")
|
fixDarwinDylibNames $(find "$dir" -name "*.dylib")
|
||||||
}
|
}
|
||||||
|
|
||||||
postFixup() {
|
|
||||||
fixDarwinDylibNamesIn "$prefix"
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user