mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Remove FreeBSD hack by requiring a newer gcc from ports.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user