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
be8a81b5
Commit
be8a81b5
authored
Nov 19, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Allow modules to link to their own import library.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27b20c1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
makedep.c
tools/makedep.c
+5
-5
No files found.
tools/makedep.c
View file @
be8a81b5
...
...
@@ -2218,9 +2218,6 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra
const
char
*
name
=
get_base_name
(
imports
.
str
[
i
]
);
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
]
))
continue
;
for
(
j
=
0
;
j
<
subdirs
.
count
;
j
++
)
{
if
(
submakes
[
j
]
->
importlib
&&
!
strcmp
(
submakes
[
j
]
->
importlib
,
name
))
...
...
@@ -3117,7 +3114,7 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
{
if
((
source
->
file
->
flags
&
FLAG_C_UNIX
)
&&
*
dll_ext
)
strarray_add
(
&
make
->
unixobj_files
,
strmake
(
"%s.o"
,
obj
));
else
if
(
!
is_dll_src
&&
(
!
(
source
->
file
->
flags
&
FLAG_C_IMPLIB
)
||
(
make
->
importlib
&&
strarray_exists
(
&
make
->
imports
,
make
->
importlib
))
))
else
if
(
!
is_dll_src
&&
!
(
source
->
file
->
flags
&
FLAG_C_IMPLIB
))
strarray_add
(
&
make
->
object_files
,
strmake
(
"%s.o"
,
obj
));
else
strarray_add
(
&
make
->
clean_files
,
strmake
(
"%s.o"
,
obj
));
...
...
@@ -3136,7 +3133,10 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
}
if
(
need_cross
)
{
strarray_add
(
is_dll_src
?
&
make
->
clean_files
:
&
make
->
crossobj_files
,
strmake
(
"%s.cross.o"
,
obj
));
if
(
!
is_dll_src
&&
!
(
source
->
file
->
flags
&
FLAG_C_IMPLIB
))
strarray_add
(
&
make
->
crossobj_files
,
strmake
(
"%s.cross.o"
,
obj
));
else
strarray_add
(
&
make
->
clean_files
,
strmake
(
"%s.cross.o"
,
obj
));
output
(
"%s.cross.o: %s
\n
"
,
obj_dir_path
(
make
,
obj
),
source
->
filename
);
output
(
"
\t
$(CROSSCC) -c -o $@ %s"
,
source
->
filename
);
output_filenames
(
defines
);
...
...
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