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
b336a084
Commit
b336a084
authored
Apr 15, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Only use a constructor for dll modules.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4677fa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
winegcc.c
tools/winegcc/winegcc.c
+3
-13
No files found.
tools/winegcc/winegcc.c
View file @
b336a084
...
...
@@ -532,20 +532,10 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
strarray_add
(
link_args
,
"-Wl,-Bsymbolic"
);
if
(
!
opts
->
noshortwchar
&&
opts
->
target_cpu
==
CPU_ARM
)
strarray_add
(
flags
,
"-Wl,--no-wchar-size-warning"
);
/* Try all options first - this is likely to succeed on modern compilers */
if
(
!
try_link
(
opts
->
prefix
,
link_args
,
"-Wl,-z,defs -Wl,-init,__wine_spec_init,-fini,_wine_spec_fini"
))
{
if
(
!
try_link
(
opts
->
prefix
,
link_args
,
"-Wl,-z,defs"
))
strarray_add
(
flags
,
"-Wl,-z,defs"
);
strarray_add
(
flags
,
"-Wl,-init,__wine_spec_init,-fini,__wine_spec_fini"
);
}
else
/* otherwise figure out which ones are allowed */
{
if
(
!
try_link
(
opts
->
prefix
,
link_args
,
"-Wl,-z,defs"
))
strarray_add
(
flags
,
"-Wl,-z,defs"
);
if
(
!
try_link
(
opts
->
prefix
,
link_args
,
"-Wl,-init,__wine_spec_init,-fini,_wine_spec_fini"
))
strarray_add
(
flags
,
"-Wl,-init,__wine_spec_init,-fini,__wine_spec_fini"
);
}
if
(
opts
->
shared
&&
!
try_link
(
opts
->
prefix
,
link_args
,
"-Wl,-init,__wine_spec_init"
))
strarray_add
(
flags
,
"-Wl,-init,__wine_spec_init"
);
strarray_addall
(
link_args
,
flags
);
return
link_args
;
...
...
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