Reuse gmp dependency?
jiahao opened this issue · comments
I just noticed on a fresh installation on OSX 10.9.1 that Nettle pulls a homebrew bottle of gmp 5.1.3. Since gmp is a dependency of Julia itself, would it make more sense to reuse the build from Julia rather than installing a fresh copy?
I originally tried to do this, but since I don't know the absolute location of Julia's gmp
libraries, nor the relative location of Julia from Nettle's location on the harddrive, I can't store the library locations into libnettle
. I did, for a while, try symlinking Julia's gmp and gfortran libraries into brew's /lib
folders, which worked right up until the gfortran and gmp Julia came with differed from the gmp and gfortran that nettle was built against. In the end, I decided it wasn't worth the trouble, but once I get a better bottling infrastructure setup, it should become much more trivial to update Nettle when gmp/gfortran are modified so this would be a nice thing to do.
I'm closing this for now, as what we have going right now seems to work.
We also don't install gmp headers with make install
or binary builds of Julia, so this wouldn't really work immediately.