Changeset f44f92d4f37b5e37b4b8ca3147fb7cf8046c635e

Show
Ignore:
Timestamp:
11/14/10 21:20:14 (3 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
577194b9e5c979d7f2361aabd0995da9b2d63898
Parents:
ffc3be463e7c0f0a89f8612492c2d88b56aac3a6
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-11-14T21:20:14Z+0200
Message:

wscript: more waf-1.6 related improvements

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wscript

    rffc3be4 rf44f92d  
    4141 
    4242def options(opt): 
    43     opt.tool_options('compiler_c') 
    44     opt.tool_options('compiler_cxx') 
    45     opt.tool_options('boost') 
    46     opt.tool_options('python') 
     43    opt.load('compiler_c') 
     44    opt.load('compiler_cxx') 
     45    opt.load('boost') 
     46    opt.load('python') 
    4747    opt.add_option('--enable-pkg-config-dbus-service-dir', action='store_true', default=False, help='force D-Bus service install dir to be one returned by pkg-config') 
    4848    opt.add_option('--enable-liblash', action='store_true', default=False, help='Build LASH compatibility library') 
     
    8383 
    8484def configure(conf): 
    85     conf.check_tool('compiler_c') 
    86     conf.check_tool('compiler_cxx') 
    87     conf.check_tool('boost') 
    88     conf.check_tool('python') 
     85    conf.load('compiler_c') 
     86    conf.load('compiler_cxx') 
     87    conf.load('boost') 
     88    conf.load('python') 
    8989    if parallel_debug: 
    9090        conf.load('parallel_debug') 
    9191 
    92     conf.env['LIB_DL'] = ['dl'] 
     92    # dladdr() is used by daemon/sigsegv.c 
     93    # dlvsym() is used by the alsapid library 
     94    conf.check_cc(msg="Checking for libdl", lib=['dl'], uselib_store='DL') 
     95 
     96    # forkpty() is used by ladishd 
     97    conf.check_cc(msg="Checking for libutil", lib=['util'], uselib_store='UTIL') 
    9398 
    9499    conf.check_cfg( 
     
    303308    daemon = bld.program(source = [], features = 'c cprogram', includes = [bld.path.get_bld()]) 
    304309    daemon.target = 'ladishd' 
    305     daemon.uselib = 'DBUS-1 UUID EXPAT' 
     310    daemon.uselib = 'DBUS-1 UUID EXPAT DL UTIL' 
    306311    daemon.ver_header = 'version.h' 
    307     daemon.env.append_value("LINKFLAGS", ["-lutil", "-ldl", "-Wl,-E"]) 
     312    # Make backtrace function lookup to work for functions in the executable itself 
     313    daemon.env.append_value("LINKFLAGS", ["-Wl,-E"]) 
    308314 
    309315    for source in [