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
90bed22e
Commit
90bed22e
authored
Aug 06, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Use -nodefaultlibs -nostartfiles for builtin DLLs.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9246fca3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
winegcc.c
tools/winegcc/winegcc.c
+4
-3
No files found.
tools/winegcc/winegcc.c
View file @
90bed22e
...
...
@@ -383,6 +383,7 @@ static int try_link( const strarray *prefix, const strarray *link_tool, const ch
static
strarray
*
get_link_args
(
struct
options
*
opts
,
const
char
*
output_name
)
{
int
use_wine_crt
=
opts
->
wine_builtin
&&
opts
->
shared
;
const
strarray
*
link_tool
=
get_translator
(
opts
);
strarray
*
flags
=
strarray_alloc
();
unsigned
int
i
;
...
...
@@ -437,8 +438,8 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
else
strarray_add
(
flags
,
opts
->
gui_app
?
"-mwindows"
:
"-mconsole"
);
if
(
opts
->
unicode_app
)
strarray_add
(
flags
,
"-municode"
);
if
(
opts
->
nodefaultlibs
)
strarray_add
(
flags
,
"-nodefaultlibs"
);
if
(
opts
->
nostartfiles
)
strarray_add
(
flags
,
"-nostartfiles"
);
if
(
opts
->
nodefaultlibs
||
use_wine_crt
)
strarray_add
(
flags
,
"-nodefaultlibs"
);
if
(
opts
->
nostartfiles
||
use_wine_crt
)
strarray_add
(
flags
,
"-nostartfiles"
);
if
(
opts
->
subsystem
)
{
...
...
@@ -1172,7 +1173,7 @@ static void build(struct options* opts)
strarray_add
(
link_args
,
"-lc"
);
}
if
(
opts
->
nodefaultlibs
&&
is_pe
)
strarray_add
(
link_args
,
"-lgcc"
);
if
(
(
opts
->
nodefaultlibs
||
opts
->
shared
)
&&
is_pe
)
strarray_add
(
link_args
,
"-lgcc"
);
spawn
(
opts
->
prefix
,
link_args
,
0
);
strarray_free
(
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