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
cbc35152
Commit
cbc35152
authored
Jul 01, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Pass -mno-cygwin and -munix flags directly to winebuild.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
79335620
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
winegcc.c
tools/winegcc/winegcc.c
+9
-1
winegcc.man.in
tools/winegcc/winegcc.man.in
+3
-0
No files found.
tools/winegcc/winegcc.c
View file @
cbc35152
...
...
@@ -207,6 +207,7 @@ struct options
int
nostartfiles
;
int
nodefaultlibs
;
int
noshortwchar
;
int
unix_lib
;
int
gui_app
;
int
unicode_app
;
int
win16_app
;
...
...
@@ -964,7 +965,8 @@ static strarray *get_winebuild_args(struct options *opts)
for
(
i
=
0
;
i
<
opts
->
prefix
->
size
;
i
++
)
strarray_add
(
spec_args
,
strmake
(
"-B%s"
,
opts
->
prefix
->
base
[
i
]
));
}
if
(
!
opts
->
use_msvcrt
)
strarray_add
(
spec_args
,
"-munix"
);
if
(
opts
->
use_msvcrt
)
strarray_add
(
spec_args
,
"-mno-cygwin"
);
if
(
opts
->
unix_lib
)
strarray_add
(
spec_args
,
"-munix"
);
if
(
opts
->
unwind_tables
)
strarray_add
(
spec_args
,
"-fasynchronous-unwind-tables"
);
else
strarray_add
(
spec_args
,
"-fno-asynchronous-unwind-tables"
);
return
spec_args
;
...
...
@@ -1790,6 +1792,7 @@ int main(int argc, char **argv)
{
opts
.
use_msvcrt
=
1
;
raw_compiler_arg
=
0
;
strarray_add
(
opts
.
winebuild_args
,
opts
.
args
->
base
[
i
]
);
}
else
if
(
strcmp
(
"-mwindows"
,
opts
.
args
->
base
[
i
])
==
0
)
{
...
...
@@ -1810,6 +1813,11 @@ int main(int argc, char **argv)
{
raw_compiler_arg
=
0
;
}
else
if
(
strcmp
(
"-munix"
,
opts
.
args
->
base
[
i
])
==
0
)
{
opts
.
unix_lib
=
1
;
raw_compiler_arg
=
0
;
}
else
if
(
strcmp
(
"-m16"
,
opts
.
args
->
base
[
i
])
==
0
)
{
opts
.
win16_app
=
1
;
...
...
tools/winegcc/winegcc.man.in
View file @
cbc35152
...
...
@@ -59,6 +59,9 @@ Set the default entry point of the application to be the Unicode
This option adds -lgdi32, -lcomdlg32, and -lshell32 to the list of
default libraries, and passes '--subsystem windows' to winebuild
to build graphical applications.
.B \-munix
Set when building the Unix counterpart of a builtin module.
.TP
.IP \fB-nodefaultlibs\fR
Do not use the standard system libraries when linking. These
include at a minimum -lkernel32, -luser32, -ladvapi32, and
...
...
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