Changeset 1372 for trunk/SConstruct

Show
Ignore:
Timestamp:
07/08/08 08:59:03 (3 months ago)
Author:
patrick
Message:

For some reason, SCons is using the wrong compile flag to create shared
libraries on Mac OS X. Force the use of -dynamiclib until this gets resolved
in a more correct manner.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SConstruct

    r1308 r1372  
    920920         default_combo_type = None 
    921921       
     922      # XXX: This is a hack to deal with what seems to be a bug in SCons. It 
     923      # sets up the shared linker flags for the Apple GCC case to use -shared 
     924      # instead of -dynamiclib. 
     925      if "darwin" == platform: 
     926         common_env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -dynamiclib') 
     927 
    922928      for combo in variant_helper.iterate(locals(), base_bldr, common_env): 
    923929      #baseEnv = env_bldr.applyToEnvironment(common_env.Copy(), variant=combo,options=opts)