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
0db5f6cf
Commit
0db5f6cf
authored
May 25, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
May 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Add support for -Wl,--whole-archive option.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c5ee64a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
winegcc.c
tools/winegcc/winegcc.c
+10
-0
No files found.
tools/winegcc/winegcc.c
View file @
0db5f6cf
...
...
@@ -1188,6 +1188,8 @@ static void build(struct options* opts)
add_library
(
opts
,
lib_dirs
,
files
,
file
+
2
);
else
if
(
file
[
1
]
==
'x'
)
lang
=
file
;
else
if
(
file
[
1
]
==
'W'
)
strarray_add
(
files
,
file
);
}
/* add the default libraries, if needed */
...
...
@@ -1393,6 +1395,9 @@ static void build(struct options* opts)
}
strarray_add
(
link_args
,
name
);
break
;
case
'W'
:
strarray_add
(
link_args
,
files
->
base
[
j
]);
break
;
}
}
...
...
@@ -1932,6 +1937,11 @@ int main(int argc, char **argv)
opts
.
debug_file
=
strdup
(
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"--whole-archive"
)
||
!
strcmp
(
Wl
->
base
[
j
],
"--no-whole-archive"
))
{
strarray_add
(
opts
.
files
,
strmake
(
"-Wl,%s"
,
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