Fix to set `old_library` in libtool file only for `staticlib` project

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 12dcb88d29)
r14.0.x
OBATA Akio 4 years ago committed by Michele Calgaro
parent ed71e397ed
commit 4140dfe51e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1471,7 +1471,11 @@ UnixMakefileGenerator::writeLibtoolFile()
t << "'\n\n";
t << "# The name of the static archive.\n"
<< "old_library='" << lname.left(lname.length()-Option::libtool_ext.length()) << ".a'\n\n";
<< "old_library='";
if(project->isActiveConfig("staticlib")) {
t << lname.left(lname.length()-Option::libtool_ext.length()) << ".a";
}
t << "'\n\n";
t << "# Libraries that this one depends upon.\n";
TQStringList libs;

Loading…
Cancel
Save