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
c1a00d4b
Commit
c1a00d4b
authored
Nov 16, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Default to msvcrt mode for all PE builds.
parent
a1c8232b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
winegcc.c
tools/winegcc/winegcc.c
+6
-3
No files found.
tools/winegcc/winegcc.c
View file @
c1a00d4b
...
...
@@ -1012,7 +1012,11 @@ static const char *build_spec_obj( struct options *opts, const char *spec_file,
}
spec_o_name
=
get_temp_file
(
output_name
,
".spec.o"
);
if
(
opts
->
pic
&&
!
is_pe
)
strarray_add
(
&
spec_args
,
"-fPIC"
);
if
(
!
is_pe
)
{
if
(
opts
->
pic
)
strarray_add
(
&
spec_args
,
"-fPIC"
);
if
(
opts
->
use_msvcrt
)
strarray_add
(
&
spec_args
,
"-mno-cygwin"
);
}
strarray_add
(
&
spec_args
,
opts
->
shared
?
"--dll"
:
"--exe"
);
if
(
opts
->
fake_module
)
{
...
...
@@ -1718,7 +1722,6 @@ int main(int argc, char **argv)
{
opts
.
use_msvcrt
=
1
;
raw_compiler_arg
=
0
;
raw_winebuild_arg
=
1
;
}
if
(
strcmp
(
"-mcygwin"
,
opts
.
args
.
str
[
i
])
==
0
)
{
...
...
@@ -1980,7 +1983,7 @@ int main(int argc, char **argv)
if
(
opts
.
processor
==
proc_cpp
)
linking
=
0
;
if
(
linking
==
-
1
)
error
(
"Static linking is not supported
\n
"
);
if
(
!
opts
.
wine_objdir
&&
is_pe_target
(
&
opts
))
opts
.
use_msvcrt
=
1
;
if
(
is_pe_target
(
&
opts
))
opts
.
use_msvcrt
=
1
;
if
(
opts
.
files
.
count
==
0
&&
!
opts
.
fake_module
)
forward
(
&
opts
);
else
if
(
linking
)
build
(
&
opts
);
...
...
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