GetPrerequisites: Make sure dyld placeholders are prefixes
Mac OS X dyld placeholders should be always prefixes, otherwise this can lead to some undefined behavior.
This commit is contained in:
parent
6c31379741
commit
14bc686fff
|
@ -329,7 +329,7 @@ function(gp_resolve_item context item exepath dirs resolved_item_var)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT resolved)
|
if(NOT resolved)
|
||||||
if(item MATCHES "@executable_path")
|
if(item MATCHES "^@executable_path")
|
||||||
#
|
#
|
||||||
# @executable_path references are assumed relative to exepath
|
# @executable_path references are assumed relative to exepath
|
||||||
#
|
#
|
||||||
|
@ -347,7 +347,7 @@ function(gp_resolve_item context item exepath dirs resolved_item_var)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT resolved)
|
if(NOT resolved)
|
||||||
if(item MATCHES "@loader_path")
|
if(item MATCHES "^@loader_path")
|
||||||
#
|
#
|
||||||
# @loader_path references are assumed relative to the
|
# @loader_path references are assumed relative to the
|
||||||
# PATH of the given "context" (presumably another library)
|
# PATH of the given "context" (presumably another library)
|
||||||
|
@ -367,7 +367,7 @@ function(gp_resolve_item context item exepath dirs resolved_item_var)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT resolved)
|
if(NOT resolved)
|
||||||
if(item MATCHES "@rpath")
|
if(item MATCHES "^@rpath")
|
||||||
#
|
#
|
||||||
# @rpath references are relative to the paths built into the binaries with -rpath
|
# @rpath references are relative to the paths built into the binaries with -rpath
|
||||||
# We handle this case like we do for other Unixes
|
# We handle this case like we do for other Unixes
|
||||||
|
|
Loading…
Reference in New Issue