<basshelal[m]>
We can always add a function in `Platform` or one of the supported `Platfom`s like `Linux` and `Darwin` (or even a new superclass for those called `Unix`) that returns you the "canonical Unix lib locations" like:
<basshelal[m]>
Then you can add the Unix paths in your search when you need to load the library.
<basshelal[m]>
fzakaria: is right regarding having "purity" that hardcoding shouldn't be the solution, but goddamn macOS is so annoying and so inconvenient. Again check my comment regarding this on GitHub maybe I'm doing something terribly wrong and I'm an idiot (probable) but I've tried so much and nothing is helpful, the JVM source code indicates we should have those lib paths (not `/usr/local/lib` and maybe for good reason) but I cannot get them for the
<basshelal[m]>
life of me
<fzakaria[m]>
basshelal: i don't have MacOS but please run:
<fzakaria[m]>
```
<fzakaria[m]>
java -XshowSettings:properties
<fzakaria[m]>
```
Igneous has joined #jruby
Igneous has quit [Quit: leaving]
sagax has quit [Remote host closed the connection]
<fzakaria[m]>
They all have /usr/lib/java which is great and /Library/Java/Extensions.
<fzakaria[m]>
Those look to me like idiomatic folders in MacOS BSD where to find dylib
<headius>
Good morning
<basshelal[m]>
> <@fzakaria:matrix.org> They all have /usr/lib/java which is great and /Library/Java/Extensions.
<basshelal[m]>
> Those look to me like idiomatic folders in MacOS BSD where to find dylib
<basshelal[m]>
Yeah they all have `/usr/lib/java` but all these folders are the dylibs for java and the jvm, not the "system" dylibs or any user installed dylibs
<basshelal[m]>
fzakaria I could be thinking too much from a GNU/Linux mindset though since macOS no longer actually uses Unix lib paths for its system libs and instead uses a different format and path. I believe its like `CoreAudio.Framework` which is like a directory to resources relating to the actual system libs
<basshelal[m]>
This doesn't matter to us, it's just to say that macOS has become very different from Unix and GNU/Linux