diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 21:27:40 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 21:27:40 -0400 |
commit | e696bfd913a10edd19f9e35eb1aee2c97b11e7f6 (patch) | |
tree | 941243868b1dcacd68cbd52a2f96e40bf70a5d3b /acprep | |
parent | a8182c32bdee80920646481acb176979920838e3 (diff) | |
download | ledger-e696bfd913a10edd19f9e35eb1aee2c97b11e7f6.tar.gz ledger-e696bfd913a10edd19f9e35eb1aee2c97b11e7f6.tar.bz2 ledger-e696bfd913a10edd19f9e35eb1aee2c97b11e7f6.zip |
Added Boost variable definitions for opt builds
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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') |