Commit 551d0971 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winegcc: Check also for unsuffixed lib/ dir in get_lib_dir.

Wine uses lib/ and lib64/ by default. This fixes -m32 handling in such configuration. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 3fcfb9c5
......@@ -458,7 +458,12 @@ static char *get_lib_dir( struct options *opts )
while (p > buffer && p[-1] == '/') p--;
strcpy( p, libwine );
if (check_platform( opts, buffer )) goto found;
if (p > buffer + 2 && (!memcmp( p - 2, "32", 2 ) || !memcmp( p - 2, "64", 2 ))) p -= 2;
if (p > buffer + 2 && (!memcmp( p - 2, "32", 2 ) || !memcmp( p - 2, "64", 2 )))
{
p -= 2;
strcpy( p, libwine );
if (check_platform( opts, buffer )) goto found;
}
if (opts->target_cpu != CPU_x86_64 && opts->target_cpu != CPU_ARM64)
{
strcpy( p, "32" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment