Remove FreeBSD hack by requiring a newer gcc from ports.

This commit is contained in:
Alex Dupre
2013-06-29 10:01:34 +02:00
parent ebd10afdb2
commit ff0258aa8d
2 changed files with 7 additions and 7 deletions

View File

@@ -24,13 +24,6 @@
#define BEAST_USE_BOOST 1
// VFALCO TODO Fix this problem with FreeBSD and std::bind.
// We need to enforce a minimum library/g++ version.
//
#if __FreeBSD__
#define BEAST_BIND_USES_BOOST 1
#endif
#ifndef BEAST_USE_LEAKCHECKED
#define BEAST_USE_LEAKCHECKED BEAST_CHECK_MEMORY_LEAKS
#endif

View File

@@ -35,6 +35,13 @@ GCC_VERSION = re.split('\.', commands.getoutput(env['CXX'] + ' -dumpversion'))
#env.Replace(CC = 'clang')
#env.Replace(CXX = 'clang++')
# Use a newer gcc on FreeBSD
if FreeBSD:
env.Replace(CC = 'gcc46')
env.Replace(CXX = 'g++46')
env.Append(CCFLAGS = ['-Wl,-rpath=/usr/local/lib/gcc46'])
env.Append(LINKFLAGS = ['-Wl,-rpath=/usr/local/lib/gcc46'])
#
# Builder for CTags
#