diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-05 16:15:09 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-05 16:15:09 -0400 |
commit | 290cac7b84b60305e185c140645c9bac2ca9fb0e (patch) | |
tree | c389da2eed81612ffb3868f61c31fa2534855fe1 /acprep | |
parent | f8bfbf8c250fa24bc9e26b9bf1eb64815a5a29ee (diff) | |
parent | 1417b40fdf0a92a85ab01f233c0ae076079901a2 (diff) | |
download | fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.gz fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.bz2 fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.zip |
Merge branch 'next'
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -124,7 +124,9 @@ class BoostInfo(object): return None def locate_boost(self): - for path in map(lambda x: join(x, 'lib'), search_prefixes): + lib64_dirs = map(lambda x: join(x, 'lib64'), search_prefixes) + lib_dirs = map(lambda x: join(x, 'lib'), search_prefixes) + for path in lib64_dirs + lib_dirs: self.log.info('Looking for Boost in %s...' % path) self.suffix = self.find_boost_in_directory(path) if self.suffix is not None: @@ -685,12 +687,16 @@ class PrepareBuild(CommandLineApp): self.current_version()) version_m4.close() + def copytimes(self, src, dest): + os.utime(dest, (os.stat(src)[ST_ATIME], os.stat(src)[ST_MTIME])) + def phase_autogen(self, *args): self.log.info('Executing phase: autogen') if not exists('autogen.sh') or \ self.isnewer('tools/autogen.sh', 'autogen.sh'): shutil.copyfile('tools/autogen.sh', 'autogen.sh') + self.copytimes('tools/autogen.sh', 'autogen.sh') self.execute('sh', 'tools/autogen.sh') @@ -704,10 +710,12 @@ class PrepareBuild(CommandLineApp): if not exists('configure.ac') or \ self.isnewer('tools/configure.ac', 'configure.ac'): shutil.copyfile('tools/configure.ac', 'configure.ac') + self.copytimes('tools/configure.ac', 'configure.ac') if not exists('Makefile.am') or \ self.isnewer('tools/Makefile.am', 'Makefile.am'): shutil.copyfile('tools/Makefile.am', 'Makefile.am') + self.copytimes('tools/Makefile.am', 'Makefile.am') reason = self.need_to_prepare_autotools() if reason: @@ -1159,6 +1167,7 @@ class PrepareBuild(CommandLineApp): self.LDFLAGS.append('-g') def setup_flavor_opt(self): + self.CPPFLAGS.append('-DNDEBUG=1') if self.darwin_gcc: self.option_no_pch() if '--disable-shared' in self.configure_args: |