SCons: Make BATCH options global sticky so libelf is built appropriately.

--HG--
extra : convert_revision : 4bca5c31b8421305d41aac072696964b39d7ff16
This commit is contained in:
Ali Saidi
2008-04-07 23:40:24 -04:00
parent d9d79cebb9
commit bee4d454e8
2 changed files with 11 additions and 19 deletions

View File

@@ -87,16 +87,9 @@ ElfFile('libelf_convert.c')
ElfFile('libelf_fsize.c')
ElfFile('libelf_msize.c')
m4env = Environment(ENV=os.environ)
if env.get('CC'):
m4env['CC'] = env['CC']
if env.get('CXX'):
m4env['CXX'] = env['CXX']
if env.get('OSX64bit'):
m4env.Append(CFLAGS='-arch x86_64')
m4env.Append(LINKFLAGS='-arch x86_64')
m4env = env.Copy()
del m4env['CCFLAGS']
del m4env['CPPPATH']
# If we have gm4 use it
if m4env.Detect('gm4'):