summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-25 21:27:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-25 21:27:40 -0400
commite696bfd913a10edd19f9e35eb1aee2c97b11e7f6 (patch)
tree941243868b1dcacd68cbd52a2f96e40bf70a5d3b /acprep
parenta8182c32bdee80920646481acb176979920838e3 (diff)
downloadledger-e696bfd913a10edd19f9e35eb1aee2c97b11e7f6.tar.gz
ledger-e696bfd913a10edd19f9e35eb1aee2c97b11e7f6.tar.bz2
ledger-e696bfd913a10edd19f9e35eb1aee2c97b11e7f6.zip
Added Boost variable definitions for opt builds
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep17
1 files changed, 17 insertions, 0 deletions
diff --git a/acprep b/acprep
index 8d695b8b..ef264254 100755
--- a/acprep
+++ b/acprep
@@ -985,6 +985,23 @@ class PrepareBuild(CommandLineApp):
self.CXXFLAGS.append('-O3')
self.CXXFLAGS.append('-fomit-frame-pointer')
+ if exists('/usr/local/lib/libboost_regex-xgcc44-s-1_40.a'):
+ self.envvars['BOOST_HOME'] = '/usr/local'
+ self.envvars['BOOST_SUFFIX'] = '-xgcc44-s-1_40'
+ self.log.debug('Setting BOOST_SUFFIX => %s' %
+ self.envvars['BOOST_SUFFIX'])
+
+ self.sys_include_dirs.append('/usr/local/include/boost-1_40')
+
+ elif exists('/opt/local/lib/libboost_regex.a'):
+ self.envvars['BOOST_HOME'] = '/opt/local'
+ self.envvars['BOOST_SUFFIX'] = ''
+
+ self.log.debug('Setting BOOST_SUFFIX => %s' %
+ self.envvars['BOOST_SUFFIX'])
+
+ self.sys_include_dirs.append('/opt/local/include/boost')
+
def setup_flavor_gcov(self):
self.CXXFLAGS.append('-g')
self.CXXFLAGS.append('-fprofile-arcs')