Fix to set libtool special mode-args as a compiler flag

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 141af55cca)
r14.0.x
OBATA Akio 4 years ago committed by Michele Calgaro
parent e1cdcbaf45
commit 72977948b9
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -343,7 +343,7 @@ UnixMakefileGenerator::init()
if(libtoolify[i].startsWith("QMAKE_LINK") || libtoolify[i] == "QMAKE_AR_CMD") {
libtool_flags += " --mode=link";
if(project->isActiveConfig("staticlib")) {
libtool_flags += " -static";
comp_flags += " -static";
} else {
if(!project->isEmpty("QMAKE_LIB_FLAG")) {
int maj = project->first("VER_MAJ").toInt();
@ -363,7 +363,7 @@ UnixMakefileGenerator::init()
}
}
if(project->isActiveConfig("plugin"))
libtool_flags += " -module";
comp_flags += " -module";
} else {
libtool_flags += " --mode=compile";
}

Loading…
Cancel
Save