Cyan4973/lz4 — pull request #9 by neverpanic (2014-06-28 11:25:58+00:00)
Title: Fix lib install name and version numbers on OS X

Hi,

here's a patch to fix the liblz4.dylib's install name, library version number and library compatibility version number on OS X. This is necessary because libraries are always referenced using absolute paths on OS X. Not setting the correct absolute install name requires users to set `DYLD_LIBRARY_PATH` or `DYLD_FALLBACK_LIBRARY_PATH`, somewhat crude alternatives to Linux' `LD_LIBRARY_PATH` that cause lots of problems and are hard to use.

I use this patch downstream in MacPorts where I just updated lz4 to r118 in https://trac.macports.org/changeset/121530. Feel free to list the install method via MacPorts on OS X at https://code.google.com/p/lz4/, too. For users that have MacPorts installed, `sudo port install lz4` will install command line tools, library and headers.