Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9180dec0
Commit
9180dec0
authored
Nov 11, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Add support for -Wl,-delayload argument.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0e172081
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
winegcc.c
tools/winegcc/winegcc.c
+19
-0
No files found.
tools/winegcc/winegcc.c
View file @
9180dec0
...
...
@@ -226,6 +226,7 @@ struct options
strarray
*
compiler_args
;
strarray
*
winebuild_args
;
strarray
*
files
;
strarray
*
delayimports
;
};
#ifdef __i386__
...
...
@@ -1164,6 +1165,12 @@ static void build(struct options* opts)
for
(
j
=
0
;
j
<
opts
->
winebuild_args
->
size
;
j
++
)
strarray_add
(
spec_args
,
opts
->
winebuild_args
->
base
[
j
]);
if
(
!
is_pe
)
{
for
(
j
=
0
;
j
<
opts
->
delayimports
->
size
;
j
++
)
strarray_add
(
spec_args
,
strmake
(
"-d%s"
,
opts
->
delayimports
->
base
[
j
]));
}
/* add resource files */
for
(
j
=
0
;
j
<
files
->
size
;
j
++
)
if
(
files
->
base
[
j
][
1
]
==
'r'
)
strarray_add
(
spec_args
,
files
->
base
[
j
]);
...
...
@@ -1203,6 +1210,12 @@ static void build(struct options* opts)
strarray_add
(
link_args
,
spec_o_name
);
if
(
is_pe
)
{
for
(
j
=
0
;
j
<
opts
->
delayimports
->
size
;
j
++
)
strarray_add
(
spec_args
,
strmake
(
"-Wl,-delayload,%s"
,
opts
->
delayimports
->
base
[
j
]));
}
for
(
j
=
0
;
j
<
files
->
size
;
j
++
)
{
const
char
*
name
=
files
->
base
[
j
]
+
2
;
...
...
@@ -1423,6 +1436,7 @@ int main(int argc, char **argv)
opts
.
linker_args
=
strarray_alloc
();
opts
.
compiler_args
=
strarray_alloc
();
opts
.
winebuild_args
=
strarray_alloc
();
opts
.
delayimports
=
strarray_alloc
();
opts
.
pic
=
1
;
/* determine the processor type */
...
...
@@ -1672,6 +1686,11 @@ int main(int argc, char **argv)
opts
.
subsystem
=
strdup
(
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"-delayload"
)
&&
j
<
Wl
->
size
-
1
)
{
strarray_add
(
opts
.
delayimports
,
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"-static"
))
linking
=
-
1
;
strarray_add
(
opts
.
linker_args
,
strmake
(
"-Wl,%s"
,
Wl
->
base
[
j
]));
}
...
...
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