From 12dcb88d29d09f1f913b88832db5b7fa01088939 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Sat, 25 Jul 2020 17:57:19 +0900 Subject: [PATCH] Fix to set `old_library` in libtool file only for `staticlib` project Signed-off-by: OBATA Akio --- qmake/generators/unix/unixmake2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp index 56e3b8de..b6cf6421 100644 --- a/qmake/generators/unix/unixmake2.cpp +++ b/qmake/generators/unix/unixmake2.cpp @@ -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;