diff options
Diffstat (limited to 'rtemstoolkit/wscript')
-rw-r--r-- | rtemstoolkit/wscript | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/rtemstoolkit/wscript b/rtemstoolkit/wscript index bd7254b..0611e2e 100644 --- a/rtemstoolkit/wscript +++ b/rtemstoolkit/wscript @@ -168,7 +168,7 @@ def rebuild(ctx): waflib.Options.commands.extend(['clean', 'build']) def tags(ctx): - ctx.exec_command('etags $(find . -name \*.[sSch])', shell = True) + ctx.exec_command('etags $(find . -name \\*.[sSch])', shell = True) # # Libelf module. @@ -397,16 +397,19 @@ def conf_libiberty(conf): conf.write_config_header('libiberty/config.h') def bld_libiberty(bld, conf): + defines = ['HAVE_CONFIG_H=1'] if bld.env.DEST_OS == 'win32': - pex_host = 'libiberty/pex-win32.c' + pex_host = ['libiberty/pex-win32.c','libiberty/argv.c'] else: - pex_host = 'libiberty/pex-unix.c' + pex_host = ['libiberty/pex-unix.c'] + if bld.env.DEST_OS == 'darwin': + defines += ['HAVE_SPAWN_H=1', 'HAVE_POSIX_SPAWN=1', 'HAVE_POSIX_SPAWNP=1'] bld.stlib(target = 'iberty', features = 'c', install_path = None, includes = ['libiberty'], cflags = conf['cflags'], - defines = ['HAVE_CONFIG_H=1'], + defines = defines, source =['libiberty/concat.c', 'libiberty/cplus-dem.c', 'libiberty/cp-demangle.c', @@ -418,11 +421,11 @@ def bld_libiberty(bld, conf): 'libiberty/stpcpy.c', 'libiberty/pex-common.c', 'libiberty/pex-one.c', + 'libiberty/xexit.c', 'libiberty/xmalloc.c', 'libiberty/xmemdup.c', 'libiberty/xstrdup.c', - 'libiberty/xstrerror.c', - pex_host]) + 'libiberty/xstrerror.c'] + pex_host) # # The doxy command. |