Revision: 4158
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4158&view=rev
Author:   dcommander
Date:     2010-10-01 09:31:44 +0000 (Fri, 01 Oct 2010)

Log Message:
-----------
Support linking statically with GnuTLS on OS X

Modified Paths:
--------------
    trunk/release/BUILDING.txt
    trunk/unix/vncviewer/Makefile.am
    trunk/unix/x0vncserver/Makefile.am

Modified: trunk/release/BUILDING.txt
===================================================================
--- trunk/release/BUILDING.txt  2010-10-01 09:31:18 UTC (rev 4157)
+++ trunk/release/BUILDING.txt  2010-10-01 09:31:44 UTC (rev 4158)
@@ -165,6 +165,29 @@
 to the configure command line.  The OS X 10.4 SDK must be installed.
 
 
+Building VeNCrypt support on OS X
+---------------------------------
+
+VeNCrypt requires GnuTLS, which is not available on OS X systems by default.
+However, it can be obtained from MacPorts (http://www.macports.org/).  The
+easiest way to build TigerVNC using this version of GnuTLS is simply to
+modify the CPATH and LIBRARY_PATH environment variables to include /opt/local,
+i.e.:
+
+export CPATH=/opt/local/include
+export LIBRARY_PATH=/opt/local/lib
+
+and then build TigerVNC as you would normally.  However, this produces run-time
+dependencies on the .dylib files in /opt/local/lib.  To statically link with
+GnuTLS, add the following monstrosity to the configure command line:
+
+  GNUTLS_CFLAGS=-I/opt/local/include \
+    GNUTLS_LDFLAGS='/opt/local/lib/libgnutls.a /opt/local/lib/libgcrypt.a \
+    /opt/local/lib/libgpg-error.a /opt/local/lib/libz.a \
+    /opt/local/lib/libtasn1.a /opt/local/lib/libiconv.a \
+    /opt/local/lib/libintl.a -framework CoreFoundation'
+
+
 *******************************************************************************
 **     Creating Release Packages
 *******************************************************************************

Modified: trunk/unix/vncviewer/Makefile.am
===================================================================
--- trunk/unix/vncviewer/Makefile.am    2010-10-01 09:31:18 UTC (rev 4157)
+++ trunk/unix/vncviewer/Makefile.am    2010-10-01 09:31:44 UTC (rev 4158)
@@ -16,6 +16,6 @@
        $(top_builddir)/common/rfb/librfb.la \
        $(top_builddir)/common/network/libnetwork.la \
        $(top_builddir)/common/rdr/librdr.la \
-       @X_PRE_LIBS@ @X_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@ # @LIBINTL@
+       @X_PRE_LIBS@ @X_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@ @GNUTLS_LIBS@ # 
@LIBINTL@
 
 EXTRA_DIST = vncviewer.man

Modified: trunk/unix/x0vncserver/Makefile.am
===================================================================
--- trunk/unix/x0vncserver/Makefile.am  2010-10-01 09:31:18 UTC (rev 4157)
+++ trunk/unix/x0vncserver/Makefile.am  2010-10-01 09:31:44 UTC (rev 4158)
@@ -19,6 +19,6 @@
        $(top_builddir)/common/network/libnetwork.la \
        $(top_builddir)/common/rdr/librdr.la \
        $(top_builddir)/unix/tx/libtx.la @INET_LIB@ @X_PRE_LIBS@ @X_LIBS@ \
-       @XTEST_LIB@ -lXext -lX11 @X_EXTRA_LIBS@
+       @XTEST_LIB@ -lXext -lX11 @X_EXTRA_LIBS@ @GNUTLS_LIBS@
 
 EXTRA_DIST = x0vncserver.man


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to