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
c11da76d
Commit
c11da76d
authored
Apr 21, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Apr 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Add support for Multiarch Architecture Specifiers.
parent
504925a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
winegcc.c
tools/winegcc/winegcc.c
+13
-1
No files found.
tools/winegcc/winegcc.c
View file @
c11da76d
...
...
@@ -361,7 +361,7 @@ static char *get_lib_dir( struct options *opts )
for
(
i
=
0
;
i
<
sizeof
(
stdlibpath
)
/
sizeof
(
stdlibpath
[
0
]);
i
++
)
{
char
*
p
,
*
buffer
=
xmalloc
(
strlen
(
stdlibpath
[
i
])
+
strlen
(
libwine
)
+
3
);
char
*
p
,
*
buffer
=
xmalloc
(
strlen
(
stdlibpath
[
i
])
+
strlen
(
"/arm-linux-gnueabi"
)
+
strlen
(
libwine
)
+
1
);
strcpy
(
buffer
,
stdlibpath
[
i
]
);
p
=
buffer
+
strlen
(
buffer
);
while
(
p
>
buffer
&&
p
[
-
1
]
==
'/'
)
p
--
;
...
...
@@ -380,6 +380,18 @@ static char *get_lib_dir( struct options *opts )
strcat
(
p
,
libwine
);
if
(
check_platform
(
opts
,
buffer
))
goto
found
;
}
switch
(
opts
->
target_cpu
)
{
case
CPU_x86
:
strcpy
(
p
,
"/i386-linux-gnu"
);
break
;
case
CPU_x86_64
:
strcpy
(
p
,
"/x86_64-linux-gnu"
);
break
;
case
CPU_ARM
:
strcpy
(
p
,
"/arm-linux-gnueabi"
);
break
;
case
CPU_ARM64
:
strcpy
(
p
,
"/aarch64-linux-gnu"
);
break
;
case
CPU_POWERPC
:
strcpy
(
p
,
"/powerpc-linux-gnu"
);
break
;
default:
assert
(
0
);
}
strcat
(
p
,
libwine
);
if
(
check_platform
(
opts
,
buffer
))
goto
found
;
free
(
buffer
);
continue
;
...
...
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