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
c685acba
Commit
c685acba
authored
May 03, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Only cross-compile the static libraries that are actually used.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bbc30229
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
makedep.c
tools/makedep.c
+10
-4
No files found.
tools/makedep.c
View file @
c685acba
...
...
@@ -2086,8 +2086,14 @@ static struct makefile *get_parent_makefile( struct makefile *make )
static
int
needs_cross_lib
(
const
struct
makefile
*
make
)
{
if
(
!
crosstarget
)
return
0
;
if
(
!
make
->
importlib
)
return
0
;
return
strarray_exists
(
&
cross_import_libs
,
make
->
importlib
);
if
(
make
->
importlib
)
return
strarray_exists
(
&
cross_import_libs
,
make
->
importlib
);
if
(
make
->
staticlib
)
{
const
char
*
name
=
replace_extension
(
make
->
staticlib
,
".a"
,
""
);
if
(
!
strncmp
(
name
,
"lib"
,
3
))
name
+=
3
;
return
strarray_exists
(
&
cross_import_libs
,
name
);
}
return
0
;
}
...
...
@@ -2974,7 +2980,7 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
(
make
->
is_cross
||
((
source
->
file
->
flags
&
FLAG_C_IMPLIB
)
&&
(
needs_cross_lib
(
make
)
||
needs_delay_lib
(
make
)))
||
(
make
->
module
&&
make
->
staticlib
)));
(
make
->
staticlib
&&
needs_cross_lib
(
make
)
)));
int
need_obj
=
(
!
need_cross
||
(
source
->
file
->
flags
&
FLAG_C_IMPLIB
)
||
(
make
->
module
&&
make
->
staticlib
));
...
...
@@ -3289,7 +3295,7 @@ static void output_static_lib( struct makefile *make )
output
(
"
\n\t
%s $@
\n
"
,
ranlib
);
add_install_rule
(
make
,
make
->
staticlib
,
make
->
staticlib
,
strmake
(
"d$(dlldir)/%s"
,
make
->
staticlib
));
if
(
crosstarget
&&
make
->
module
)
if
(
needs_cross_lib
(
make
)
)
{
char
*
name
=
replace_extension
(
make
->
staticlib
,
".a"
,
".cross.a"
);
...
...
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