Verified Commit e9c6af2e authored by Camil Staps's avatar Camil Staps
Browse files

Fix quoting of final -l arguments to linker on Windows

parent a5e9e0bd
Pipeline #45991 passed with stage
in 17 seconds
......@@ -3772,14 +3772,17 @@ static int link_project (P_NODE first_project_node,char *options_file_name,char
strcpy (kernel32_file_name,"\"-l");
strcpy (kernel32_file_name+3,system_file_name+1);
replace_file_name_in_path (kernel32_file_name+3,"kernel_library","");
strcat (kernel32_file_name+3,"\"");
*arg++ = kernel32_file_name;
strcpy (user32_file_name,"\"-l");
strcpy (user32_file_name+3,system_file_name+1);
replace_file_name_in_path (user32_file_name+3,"user_library","");
strcat (user32_file_name+3,"\"");
*arg++ = user32_file_name;
strcpy (gdi32_file_name,"\"-l");
strcpy (gdi32_file_name+3,system_file_name+1);
replace_file_name_in_path (gdi32_file_name+3,"gdi_library","");
strcat (gdi32_file_name+3,"\"");
*arg++ = gdi32_file_name;
# else
strcpy (kernel32_file_name,"-l");
......
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