From 33d128738c107766ed82bfae0b6f7ceedc8fd920 Mon Sep 17 00:00:00 2001 From: Leif Madsen Date: Mon, 14 Dec 2009 17:05:01 +0000 Subject: [PATCH] Update IMAP build documentation. Update the IMAP build documentation to show how to build on 64-bit platforms. (issue #16433) Reported by: shrift Tested by: lmadsen git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@234615 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- doc/imapstorage.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/imapstorage.txt b/doc/imapstorage.txt index f9b3ce39d2..5c601278dd 100644 --- a/doc/imapstorage.txt +++ b/doc/imapstorage.txt @@ -58,7 +58,7 @@ toolkit at all. If you want to also install the UW IMAPD server, that is outside the scope of this document. Building the c-client library is fairly straightforward; for example, on a -Debian system there are two possibilities: +Debian system there are a few possibilities: 1) if you will not be using SSL to connect to the IMAP server: $ make slx SSLTYPE=none @@ -66,6 +66,16 @@ Debian system there are two possibilities: 2) if you will be using SSL to connect to the IMAP server: $ make slx EXTRACFLAGS="-I/usr/include/openssl" +Additionally, you may wish to build on a 64-bit machine, in which case you +need to add -fPIC to EXTRACFLAGS. So, building on a 64-bit machine with +SSL support would look something like: + +$ make slx EXTRACFLAGS="-fPIC -I/usr/include/openssl" + +Or without SSL support: + +$ make slx SSLTYPE=none EXTRACFLAGS=-fPIC + Once this completes you can proceed with the Asterisk build; there is no need to run 'make install'.