From f37139791ae6f3cdd4d826e1fe47bd2393c813c8 Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Tue, 1 Mar 2016 15:23:35 -0800 Subject: [PATCH] More detailed installation instructions for FreeBSD 9.X --- cmake | 2 +- doc/install/install.rst | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/cmake b/cmake index 3fcb71abc1..105ca87d25 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 3fcb71abc1697c23d16b987340e957639275ec21 +Subproject commit 105ca87d25a548bcfcde30f56b65e4e0219e09cb diff --git a/doc/install/install.rst b/doc/install/install.rst index a9f1c85bdd..8f143bbbc1 100644 --- a/doc/install/install.rst +++ b/doc/install/install.rst @@ -75,6 +75,21 @@ To install the required dependencies, you can use: Note that in older versions of FreeBSD, you might have to use the "pkg_add -r" command instead of "pkg install". + For older versions of FreeBSD (especially FreeBSD 9.x), the system compiler + is not new enough to compile Bro. For these systems, you will have to install + a newer compiler using pkg; the clang34 package should work. + + You will also have to define several environment variables on these older + systems to use the new compiler and headers similar to this before calling + configure: + + .. console:: + + export CC=clang34 + export CXX=clang++34 + export CXXFLAGS="-stdlib=libc++ -I${LOCALBASE}/include/c++/v1 -L${LOCALBASE}/lib" + export LDFLAGS="-pthread" + * Mac OS X: Compiling source code on Macs requires first installing Xcode_ (in older