~daniel.bueltmann/openwns-buildsupport/buildsupport-nownsrc

« back to all changes in this revision

Viewing changes to SConstruct

  • Committer: Marc Schinnenburg
  • Date: 2008-03-14 08:49:02 UTC
  • Revision ID: marc@schinnenburg.com-20080314084902-vtnad4vuuuvtz8qe
bug fix: rebuilt statically linked openwns if only modules changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
                if e['PRIVATESANDBOX']:
147
147
                        CNBuildSupport.printINF(str(staticallyLinkedLibs))
148
148
                        if static == True:
 
149
                                if len(staticallyLinkedLibs) > 0:
 
150
                                        installPath = os.path.join(e['PRIVATESANDBOX'], CNBuildSupport.getBuildDirName(e), 'lib')
 
151
                                        e.Depends(buildBinRes, [os.path.join(installPath, 'lib' + lib + '.a') for lib in staticallyLinkedLibs])
149
152
                                CNBuildSupport.printINF("Adding following libs for static linking: " + str(staticallyLinkedLibs))
150
153
                                e.Prepend(LINKFLAGS=['-Wl,-whole-archive'] + [ "-l" + ii for ii in staticallyLinkedLibs] + ['-Wl,-no-whole-archive'])
151
154