diff options
| author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-02-09 22:15:30 +0000 |
|---|---|---|
| committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-02-09 22:15:30 +0000 |
| commit | 89d9b333b0759fc32a35dd595ea9fa5d39d2ae7e (patch) | |
| tree | 4eb6ca6acb4c1822d3fef77aac8bc946a82bedd7 /openmp/runtime/tools | |
| parent | 36ab260b0d9b774d914154c5dda1a211acb0b8ae (diff) | |
| download | bcm5719-llvm-89d9b333b0759fc32a35dd595ea9fa5d39d2ae7e.tar.gz bcm5719-llvm-89d9b333b0759fc32a35dd595ea9fa5d39d2ae7e.zip | |
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.
llvm-svn: 260300
Diffstat (limited to 'openmp/runtime/tools')
| -rwxr-xr-x | openmp/runtime/tools/check-depends.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/tools/check-depends.pl b/openmp/runtime/tools/check-depends.pl index 48e312aa010..47e7e5a3d35 100755 --- a/openmp/runtime/tools/check-depends.pl +++ b/openmp/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 ); |

