[sdks] Use @loader_path for mono and libmonosgen (#15580)
commit0991905c8bcfe3a55ec9fb2f89a0f8dbe0cb71d4
authorRadek Doulik <radekdoulik@users.noreply.github.com>
Fri, 5 Jul 2019 15:38:19 +0000 (5 08:38 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 5 Jul 2019 15:38:19 +0000 (5 17:38 +0200)
treec5fc133847619cc4c79b1ecacb56821e5d7f04bc
parent5a5cbcc0a7b9da3dcab70fe40cb8327e085fcfca
[sdks] Use @loader_path for mono and libmonosgen (#15580)

* [sdks] Use @loader_path for mono and libmonosgen

This way we are able to dynamically load libmonosgen and also use host
mono binary.

The library dependencies look like this after the change:
```
otool -L /Users/rodo/git/mono/sdks/out/android-host-Darwin-release/bin/mono
/Users/rodo/git/mono/sdks/out/android-host-Darwin-release/bin/mono:
@loader_path/libmonosgen-2.0.dylib (compatibility version 2.0.0, current version 2.0.0)
...

otool -L /Users/rodo/git/mono/sdks/out/android-host-Darwin-release/lib/libmonosgen-2.0.dylib
/Users/rodo/git/mono/sdks/out/android-host-Darwin-release/lib/libmonosgen-2.0.dylib:
@loader_path/libmonosgen-2.0.dylib (compatibility version 2.0.0, current version 2.0.0)
...
```
sdks/builds/android.mk