From c2dbfc1d6ca677f9b6fb8eaa60e4003a903e26bd Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 9 Jan 2012 18:08:20 -0600 Subject: MAC: Make gem5 compile and run on MacOSX 10.7.2 Adaptations to make gem5 compile and run on OSX 10.7.2, with a stock gcc 4.2.1 and the remaining dependencies from macports, i.e. python 2.7,.2 swig 2.0.4, mercurial 2.0. The changes include an adaptation of the SConstruct to handle non-library linker flags, and Darwin-specific code to find the memory usage of gem5. A number of Ruby files relied on ambigious uint (without the 32 suffix) which caused compilation errors. --- ext/libelf/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/libelf/SConscript') diff --git a/ext/libelf/SConscript b/ext/libelf/SConscript index 1e7fbb465..7f33990d8 100644 --- a/ext/libelf/SConscript +++ b/ext/libelf/SConscript @@ -91,7 +91,7 @@ ElfFile('libelf_msize.c') m4env = main.Clone() if m4env['GCC']: - major,minor,dot = [ int(x) for x in m4env['CXXVERSION'].split('.')] + major,minor,dot = [int(x) for x in m4env['GCC_VERSION'].split('.')] if major >= 4: m4env.Append(CCFLAGS=['-Wno-pointer-sign']) m4env.Append(CCFLAGS=['-Wno-implicit']) -- cgit v1.2.3