Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2ea17846
Commit
2ea17846
authored
Feb 11, 2016
by
Charles Davis
Committed by
Alexandre Julliard
Feb 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: When building implibs, invoke dlltool with a machine type.
Signed-off-by:
Charles Davis
<
cdavis5x@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af417338
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
import.c
tools/winebuild/import.c
+17
-0
No files found.
tools/winebuild/import.c
View file @
2ea17846
...
...
@@ -1329,6 +1329,7 @@ void output_import_lib( DLLSPEC *spec, char **argv )
{
struct
strarray
*
args
;
char
*
def_file
;
const
char
*
as_flags
,
*
m_flag
;
if
(
target_platform
!=
PLATFORM_WINDOWS
)
fatal_error
(
"Unix-style import libraries not supported yet
\n
"
);
...
...
@@ -1342,7 +1343,23 @@ void output_import_lib( DLLSPEC *spec, char **argv )
output_file
=
NULL
;
args
=
find_tool
(
"dlltool"
,
NULL
);
switch
(
target_cpu
)
{
case
CPU_x86
:
m_flag
=
"i386"
;
as_flags
=
"--as-flags=--32"
;
break
;
case
CPU_x86_64
:
m_flag
=
"i386:x86-64"
;
as_flags
=
"--as-flags=--64"
;
break
;
default:
m_flag
=
NULL
;
break
;
}
strarray_add
(
args
,
"-k"
,
"-l"
,
output_file_name
,
"-d"
,
def_file
,
NULL
);
if
(
m_flag
)
strarray_add
(
args
,
"-m"
,
m_flag
,
as_flags
,
NULL
);
spawn
(
args
);
strarray_free
(
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