Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0
-
None
-
Windows, MinGW
-
0e443155c99a1ba9b990e7a2195132b2b8a1d36e
Description
On Windows/MinGW, when QMake decides to use absolute path for some object file, the code that generates ar object script does not prepend the object file name with ADDMOD command. This makes the generated ar object script file invalid and yields following errors from the issued "ar -M" command:
Syntax error in archive script, line 2
Syntax error in archive script, line 3
etc...
And the build failed in the linking phase, because the generated static library was empty.