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
c30d30d3
Commit
c30d30d3
authored
Apr 16, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Fixup constructors after building a module.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c4046fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
winegcc.c
tools/winegcc/winegcc.c
+13
-2
No files found.
tools/winegcc/winegcc.c
View file @
c30d30d3
...
...
@@ -936,6 +936,16 @@ static strarray *get_winebuild_args(struct options *opts)
return
spec_args
;
}
static
void
fixup_constructors
(
struct
options
*
opts
,
const
char
*
file
)
{
strarray
*
args
=
get_winebuild_args
(
opts
);
strarray_add
(
args
,
"--fixup-ctors"
);
strarray_add
(
args
,
file
);
spawn
(
opts
->
prefix
,
args
,
0
);
strarray_free
(
args
);
}
static
void
make_wine_builtin
(
struct
options
*
opts
,
const
char
*
file
)
{
strarray
*
args
=
get_winebuild_args
(
opts
);
...
...
@@ -1354,8 +1364,6 @@ static void build(struct options* opts)
spawn
(
opts
->
prefix
,
link_args
,
0
);
strarray_free
(
link_args
);
if
(
is_pe
&&
opts
->
wine_builtin
)
make_wine_builtin
(
opts
,
output_path
);
/* set the base address with prelink if linker support is not present */
if
(
opts
->
prelink
&&
!
opts
->
target
)
{
...
...
@@ -1371,6 +1379,9 @@ static void build(struct options* opts)
}
}
if
(
!
is_pe
&&
!
opts
->
shared
)
fixup_constructors
(
opts
,
output_path
);
if
(
is_pe
&&
opts
->
wine_builtin
)
make_wine_builtin
(
opts
,
output_path
);
/* create the loader script */
if
(
generate_app_loader
)
create_file
(
output_file
,
0755
,
app_loader_template
,
strmake
(
"%s.so"
,
output_name
));
...
...
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