summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-30 13:48:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-09-30 13:48:21 (GMT)
commit98402581f4e5067ccc4bd2d6bf1558cc5edcdbc7 (patch)
tree92cc2accb4e3dba6070fad547f6f00cb328f1652 /Source
parent73c89698dc6ad7da999f65d3d6f6774484252219 (diff)
parent6c12e0758bceee62daf40c31840a64de28a97142 (diff)
downloadCMake-98402581f4e5067ccc4bd2d6bf1558cc5edcdbc7.zip
CMake-98402581f4e5067ccc4bd2d6bf1558cc5edcdbc7.tar.gz
CMake-98402581f4e5067ccc4bd2d6bf1558cc5edcdbc7.tar.bz2
Merge topic 'aix-archive-shared-libraries'
6c12e0758b Ninja: Fix AIX shared library archiving Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9857
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index cd9d1ef..891187a 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -1016,7 +1016,8 @@ void cmNinjaNormalTargetGenerator::WriteNvidiaDeviceLinkStatement(
vars["LANGUAGE_COMPILE_FLAGS"] = langFlags;
auto const tgtNames = this->TargetNames(config);
- if (genTarget->HasSOName(config)) {
+ if (genTarget->HasSOName(config) ||
+ genTarget->IsArchivedAIXSharedLibrary()) {
vars["SONAME_FLAG"] =
this->GetMakefile()->GetSONameFlag(this->TargetLinkLanguage(config));
vars["SONAME"] = localGen.ConvertToOutputFormat(tgtNames.SharedObject,
@@ -1315,7 +1316,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement(
t, gt, this->TargetLinkLanguage(config), config);
vars["LANGUAGE_COMPILE_FLAGS"] = t;
}
- if (gt->HasSOName(config)) {
+ if (gt->HasSOName(config) || gt->IsArchivedAIXSharedLibrary()) {
vars["SONAME_FLAG"] = mf->GetSONameFlag(this->TargetLinkLanguage(config));
vars["SONAME"] = localGen.ConvertToOutputFormat(tgtNames.SharedObject,
cmOutputConverter::SHELL);