Changeset f44f92d4f37b5e37b4b8ca3147fb7cf8046c635e
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rffc3be4
|
rf44f92d
|
|
| 41 | 41 | |
| 42 | 42 | def 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') |
| 47 | 47 | 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') |
| 48 | 48 | opt.add_option('--enable-liblash', action='store_true', default=False, help='Build LASH compatibility library') |
| … |
… |
|
| 83 | 83 | |
| 84 | 84 | def 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') |
| 89 | 89 | if parallel_debug: |
| 90 | 90 | conf.load('parallel_debug') |
| 91 | 91 | |
| 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') |
| 93 | 98 | |
| 94 | 99 | conf.check_cfg( |
| … |
… |
|
| 303 | 308 | daemon = bld.program(source = [], features = 'c cprogram', includes = [bld.path.get_bld()]) |
| 304 | 309 | daemon.target = 'ladishd' |
| 305 | | daemon.uselib = 'DBUS-1 UUID EXPAT' |
| | 310 | daemon.uselib = 'DBUS-1 UUID EXPAT DL UTIL' |
| 306 | 311 | 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"]) |
| 308 | 314 | |
| 309 | 315 | for source in [ |