On 2019/10/07 21:37, Christopher Zimmermann wrote: > I am trying to use this to fix this issue: > https://github.com/Drup/ocaml-lmdb/issues/27 > > It might well be that I'm on the wrong path here. And since this is a > problem I've been wondering about for several years now let me ask more > generically: > How is an arbitrary piece of software supposed to > discover /usr/local/include and /usr/local/lib?
The same way it will discover /opt/include and /opt/lib on a linux box - you tell it to look there. > I routinely set > CPATH=/usr/local/include:/usr/X11R6/include > LIBRARY_PATH=/usr/local/lib:/usr/X11R6/lib > in my /etc/profile and therefore never hit such issues. Please don't do that on a machine you use to work on ports, seems like quite a high risk of committing things that won't work on anybody else's machine. (Same for python users symlinking /usr/local/bin/python -> python2.7 or whatever).
