Skip to content

Commit

Permalink
set @rpath on os x
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed Feb 15, 2019
1 parent bb12c8b commit 2c72028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,6 +17,7 @@
*.bundle
*.tmp
*.core
*.old
core
/inc/probe/bigendian
/inc/probe/bigendian64
Expand Down
4 changes: 4 additions & 0 deletions lib/FFI/Build/Platform.pm
Expand Up @@ -470,6 +470,10 @@ sub flag_library_output
{
return ("-OUT:$file");
}
elsif($self->osname eq 'darwin')
{
return ('-install_name' => "\@rpath/$file", -o => $file);
}
else
{
return ('-o' => $file);
Expand Down

0 comments on commit 2c72028

Please sign in to comment.