suse-bzip2/Makefile: add Mac OS X support
authorTorsten Maehne <torsten.maehne@gmx.de>
Mon, 27 Aug 2012 09:28:30 +0000 (11:28 +0200)
committerJoey Hess <joey@kitenet.net>
Mon, 27 Aug 2012 15:35:07 +0000 (11:35 -0400)
commit63a9424ccc86a4605995c53dcd8fcab9614870e2
tree86a8cbd8c93e2cb14677d254dc5b42677fb3c6be
parent1fe705bd9202ea154c853a847a5fc94732b42d7e
suse-bzip2/Makefile: add Mac OS X support

This commit changes the  suse-bzip2 Makefile to compile a dynamic
libbz2.dylib on Mac OS X and ensures that zgz sets DYLD_LIBRARY_PATH
on Mac OS X to swap in a different library.

The suse-bzip2 Makefile was only able to handle the compilation of
shared object libraries like they are used on Linux. Mac OS X uses
dynamic libraries, which require different compiler and linker switches.

MacPorts checks all binaries installed by a port for broken linkage.
This requires that the install_name for libbz2 is set in the suse-bzip2
Makefile to its pristine-tar install location (based on PREFIX).

Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
(cherry picked from commit 295dda0608a979d11b7acfb565745b7f507a27a1)
.gitignore
pit/suse-bzip2/Makefile