From aee0e6b59338f515d2e6576bcabb0779645308f4 Mon Sep 17 00:00:00 2001
From: lloyd <lloyd@randombit.net>
Date: Fri, 12 Nov 2010 00:44:46 +0000
Subject: Add a Mac OS X tip from Thomas Keller

---
 doc/building.tex | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'doc/building.tex')

diff --git a/doc/building.tex b/doc/building.tex
index 36a9f1140..7164f74eb 100644
--- a/doc/building.tex
+++ b/doc/building.tex
@@ -149,6 +149,19 @@ order for new shared libraries to be picked up by the linker. An
 alternative is to set your \texttt{LD\_LIBRARY\_PATH} shell variable
 to include the directory that the Botan libraries were installed into.
 
+\subsection{Mac OS X}
+
+In general the Unix instructions above should apply, however OS X does
+not support \texttt{LD\_LIBRARY\_PATH}. Thomas Keller suggests instead
+running \verb|install_name_tool| between building and running the
+self-test program:
+
+\begin{verbatim}
+  $ VERSION=1.9.10
+  $ install_name_tool -change $(otool -X -D libbotan-$VERSION.dylib) \
+       $PWD/libbotan-$VERSION.dylib check
+\end{verbatim}
+
 \subsection{MS Windows}
 
 If you don't want to deal with building botan on Windows, check the
-- 
cgit v1.2.3

