aboutsummaryrefslogtreecommitdiff
path: root/runtime/tools
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2016-02-09 22:15:30 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2016-02-09 22:15:30 +0000
commit1256a5d50fab4cb017d4f2eeecbf94b3f93e7ade (patch)
tree86172c26a968c9b436dc9f01ac128721392d5176 /runtime/tools
parent20e20fe91aabd69c35fab31c7ec58544c2ce3189 (diff)
Have Mac builds use @rpath when supported in CMake
The -install_name linker flag will use "@rpath/" when supported in CMake which is the recommended usage for dynamic libraries on Mac OSX. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@260300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/tools')
-rwxr-xr-xruntime/tools/check-depends.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/tools/check-depends.pl b/runtime/tools/check-depends.pl
index 48e312a..47e7e5a 100755
--- a/runtime/tools/check-depends.pl
+++ b/runtime/tools/check-depends.pl
@@ -185,6 +185,8 @@ sub get_deps_otool($) {
or parse_error( $tool, @bulk, $i );
++ $i;
if ( $name =~ m{\.dylib\z} ) {
+ # Added "@rpath/" enables dynamic load of the library designated at link time.
+ $name = '@rpath/' . $name;
# In case of dynamic library otool print the library itself as a dependent library.
( $i < @bulk and $bulk[ $i ] =~ m{^\s+\Q$name\E\s+\(compatibility version.*\)$} )
or parse_error( $tool, @bulk, $i );