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
c670df97
Commit
c670df97
authored
Sep 18, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Don't use default imports for Unix libraries.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c73ae99f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
makedep.c
tools/makedep.c
+7
-14
winegcc.c
tools/winegcc/winegcc.c
+1
-1
No files found.
tools/makedep.c
View file @
c670df97
...
...
@@ -2219,11 +2219,7 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra
const
char
*
lib
=
NULL
;
/* skip module's own importlib, its object files will be linked directly */
if
(
make
->
importlib
&&
!
strcmp
(
make
->
importlib
,
imports
.
str
[
i
]
))
{
if
(
!
is_unix
)
continue
;
if
(
strarray_exists
(
&
make
->
extradllflags
,
"-nodefaultlibs"
))
continue
;
}
if
(
make
->
importlib
&&
!
strcmp
(
make
->
importlib
,
imports
.
str
[
i
]
))
continue
;
for
(
j
=
0
;
j
<
subdirs
.
count
;
j
++
)
{
...
...
@@ -3325,6 +3321,7 @@ static void output_module( struct makefile *make )
if
(
make
->
unixobj_files
.
count
)
{
struct
strarray
unix_imports
=
empty_strarray
;
struct
strarray
unix_libs
=
empty_strarray
;
struct
strarray
unix_deps
=
empty_strarray
;
char
*
ext
,
*
unix_lib
=
xmalloc
(
strlen
(
make
->
module
)
+
strlen
(
dll_ext
)
+
1
);
...
...
@@ -3332,15 +3329,11 @@ static void output_module( struct makefile *make )
if
((
ext
=
get_extension
(
unix_lib
)))
*
ext
=
0
;
strcat
(
unix_lib
,
dll_ext
);
if
(
make
->
importlib
)
{
struct
strarray
imp
=
empty_strarray
;
strarray_add
(
&
imp
,
make
->
importlib
);
strarray_addall
(
&
unix_libs
,
add_import_libs
(
make
,
&
unix_deps
,
imp
,
1
,
1
));
}
strarray_addall
(
&
unix_libs
,
add_import_libs
(
make
,
&
unix_deps
,
make
->
delayimports
,
1
,
1
));
strarray_addall
(
&
unix_libs
,
add_import_libs
(
make
,
&
unix_deps
,
make
->
imports
,
0
,
1
));
add_import_libs
(
make
,
&
unix_deps
,
get_default_imports
(
make
),
0
,
1
);
/* dependencies only */
if
(
!
strarray_exists
(
&
make
->
extradllflags
,
"-nodefaultlibs"
))
strarray_add
(
&
unix_imports
,
"ntdll"
);
strarray_add
(
&
unix_imports
,
"winecrt0"
);
strarray_addall
(
&
unix_libs
,
add_import_libs
(
make
,
&
unix_deps
,
unix_imports
,
0
,
1
));
strarray_addall
(
&
unix_libs
,
add_unix_libraries
(
make
,
&
unix_deps
));
strarray_add
(
&
make
->
all_targets
,
unix_lib
);
...
...
tools/winegcc/winegcc.c
View file @
c670df97
...
...
@@ -1219,7 +1219,7 @@ static void build(struct options* opts)
add_library
(
opts
,
lib_dirs
,
files
,
"user32"
);
}
if
(
!
opts
->
nodefaultlibs
)
if
(
!
opts
->
nodefaultlibs
&&
!
opts
->
unix_lib
)
{
add_library
(
opts
,
lib_dirs
,
files
,
"winecrt0"
);
if
(
opts
->
use_msvcrt
)
...
...
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