mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-19 09:23:14 +08:00
add libiberty/argv.c for mingw32 build
Signed-off-by: zhengxiaojun <jameszxj@gmail.com> Close #4974.
This commit is contained in:

committed by
Sebastian Huber

parent
489565f330
commit
ce16c80840
@@ -399,9 +399,9 @@ def conf_libiberty(conf):
|
|||||||
def bld_libiberty(bld, conf):
|
def bld_libiberty(bld, conf):
|
||||||
defines = ['HAVE_CONFIG_H=1']
|
defines = ['HAVE_CONFIG_H=1']
|
||||||
if bld.env.DEST_OS == 'win32':
|
if bld.env.DEST_OS == 'win32':
|
||||||
pex_host = 'libiberty/pex-win32.c'
|
pex_host = ['libiberty/pex-win32.c','libiberty/argv.c']
|
||||||
else:
|
else:
|
||||||
pex_host = 'libiberty/pex-unix.c'
|
pex_host = ['libiberty/pex-unix.c']
|
||||||
if bld.env.DEST_OS == 'darwin':
|
if bld.env.DEST_OS == 'darwin':
|
||||||
defines += ['HAVE_SPAWN_H=1', 'HAVE_POSIX_SPAWN=1', 'HAVE_POSIX_SPAWNP=1']
|
defines += ['HAVE_SPAWN_H=1', 'HAVE_POSIX_SPAWN=1', 'HAVE_POSIX_SPAWNP=1']
|
||||||
bld.stlib(target = 'iberty',
|
bld.stlib(target = 'iberty',
|
||||||
@@ -410,8 +410,7 @@ def bld_libiberty(bld, conf):
|
|||||||
includes = ['libiberty'],
|
includes = ['libiberty'],
|
||||||
cflags = conf['cflags'],
|
cflags = conf['cflags'],
|
||||||
defines = defines,
|
defines = defines,
|
||||||
source =['libiberty/argv.c',
|
source =['libiberty/concat.c',
|
||||||
'libiberty/concat.c',
|
|
||||||
'libiberty/cplus-dem.c',
|
'libiberty/cplus-dem.c',
|
||||||
'libiberty/cp-demangle.c',
|
'libiberty/cp-demangle.c',
|
||||||
'libiberty/d-demangle.c',
|
'libiberty/d-demangle.c',
|
||||||
@@ -426,8 +425,7 @@ def bld_libiberty(bld, conf):
|
|||||||
'libiberty/xmalloc.c',
|
'libiberty/xmalloc.c',
|
||||||
'libiberty/xmemdup.c',
|
'libiberty/xmemdup.c',
|
||||||
'libiberty/xstrdup.c',
|
'libiberty/xstrdup.c',
|
||||||
'libiberty/xstrerror.c',
|
'libiberty/xstrerror.c'] + pex_host)
|
||||||
pex_host])
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# The doxy command.
|
# The doxy command.
|
||||||
|
Reference in New Issue
Block a user