Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
866f52bc
Commit
866f52bc
authored
Aug 09, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore prelink failures.
parent
0cdb3c97
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
utils.c
tools/winegcc/utils.c
+2
-2
utils.h
tools/winegcc/utils.h
+1
-1
winegcc.c
tools/winegcc/winegcc.c
+5
-5
No files found.
tools/winegcc/utils.c
View file @
866f52bc
...
...
@@ -279,7 +279,7 @@ file_type get_lib_type(strarray* path, const char* library, char** file)
return
file_na
;
}
void
spawn
(
const
strarray
*
prefix
,
const
strarray
*
args
)
void
spawn
(
const
strarray
*
prefix
,
const
strarray
*
args
,
int
ignore_errors
)
{
int
i
,
status
;
strarray
*
arr
=
strarray_dup
(
args
);
...
...
@@ -316,7 +316,7 @@ void spawn(const strarray* prefix, const strarray* args)
printf
(
"
\n
"
);
}
if
((
status
=
spawnvp
(
_P_WAIT
,
argv
[
0
],
argv
)))
if
((
status
=
spawnvp
(
_P_WAIT
,
argv
[
0
],
argv
))
&&
!
ignore_errors
)
{
if
(
status
>
0
)
error
(
"%s failed."
,
argv
[
0
]);
else
perror
(
"winegcc"
);
...
...
tools/winegcc/utils.h
View file @
866f52bc
...
...
@@ -62,6 +62,6 @@ char* get_basename(const char* file);
void
create_file
(
const
char
*
name
,
int
mode
,
const
char
*
fmt
,
...);
file_type
get_file_type
(
const
char
*
filename
);
file_type
get_lib_type
(
strarray
*
path
,
const
char
*
library
,
char
**
file
);
void
spawn
(
const
strarray
*
prefix
,
const
strarray
*
arr
);
void
spawn
(
const
strarray
*
prefix
,
const
strarray
*
arr
,
int
ignore_errors
);
extern
int
verbose
;
tools/winegcc/winegcc.c
View file @
866f52bc
...
...
@@ -341,7 +341,7 @@ static void compile(struct options* opts, const char* lang)
}
#undef SYS_INCLUDE
spawn
(
opts
->
prefix
,
comp_args
);
spawn
(
opts
->
prefix
,
comp_args
,
0
);
}
static
const
char
*
compile_to_object
(
struct
options
*
opts
,
const
char
*
file
,
const
char
*
lang
)
...
...
@@ -576,7 +576,7 @@ static void build(struct options* opts)
}
}
spawn
(
opts
->
prefix
,
spec_args
);
spawn
(
opts
->
prefix
,
spec_args
,
0
);
/* compile the .spec.c file into a .spec.o file */
old_processor
=
opts
->
processor
;
...
...
@@ -624,7 +624,7 @@ static void build(struct options* opts)
strarray_add
(
link_args
,
"-lc"
);
}
spawn
(
opts
->
prefix
,
link_args
);
spawn
(
opts
->
prefix
,
link_args
,
0
);
/* set the base address */
if
(
opts
->
image_base
)
...
...
@@ -637,7 +637,7 @@ static void build(struct options* opts)
strarray_add
(
prelink_args
,
"--reloc-only"
);
strarray_add
(
prelink_args
,
opts
->
image_base
);
strarray_add
(
prelink_args
,
strmake
(
"%s.so"
,
output_file
));
spawn
(
opts
->
prefix
,
prelink_args
);
spawn
(
opts
->
prefix
,
prelink_args
,
1
);
strarray_free
(
prelink_args
);
}
}
...
...
@@ -661,7 +661,7 @@ static void forward(int argc, char **argv, struct options* opts)
for
(
j
=
1
;
j
<
argc
;
j
++
)
strarray_add
(
args
,
argv
[
j
]);
spawn
(
opts
->
prefix
,
args
);
spawn
(
opts
->
prefix
,
args
,
0
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment