diff options
Diffstat (limited to 'rtemstoolkit/wscript')
-rw-r--r-- | rtemstoolkit/wscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rtemstoolkit/wscript b/rtemstoolkit/wscript index 0a27853..d1d5127 100644 --- a/rtemstoolkit/wscript +++ b/rtemstoolkit/wscript @@ -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' else: 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,6 +421,7 @@ 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', |