-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Fix darktable build | ||
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx | ||
index 5a4c6521d8..55b804d643 100644 | ||
--- a/Source/cmNinjaNormalTargetGenerator.cxx | ||
+++ b/Source/cmNinjaNormalTargetGenerator.cxx | ||
@@ -1157,7 +1157,13 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement( | ||
this->AddModuleDefinitionFlag(linkLineComputer.get(), vars["LINK_FLAGS"], | ||
config); | ||
if (gt->GetPropertyAsBool("LINK_WHAT_YOU_USE")) { | ||
- vars["LINK_FLAGS"] += " -Wl,--no-as-needed"; | ||
+ switch (targetType) { | ||
+ case cmStateEnums::EXECUTABLE: | ||
+ case cmStateEnums::SHARED_LIBRARY: | ||
+ case cmStateEnums::MODULE_LIBRARY: | ||
+ vars["LINK_FLAGS"] += " -Wl,--no-as-needed"; | ||
+ break; | ||
+ } | ||
} | ||
vars["LINK_FLAGS"] = globalGen->EncodeLiteral(vars["LINK_FLAGS"]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/Tests/RunCMake/ParseImplicitLinkInfo/ParseImplicitLinkInfo.cmake b/Tests/RunCMake/ParseImplicitLinkInfo/ParseImplicitLinkInfo.cmake | ||
index dcdc7f1b96..37e13b6c5c 100644 | ||
--- a/Tests/RunCMake/ParseImplicitLinkInfo/ParseImplicitLinkInfo.cmake | ||
+++ b/Tests/RunCMake/ParseImplicitLinkInfo/ParseImplicitLinkInfo.cmake | ||
@@ -11,7 +11,7 @@ project(Minimal NONE) | ||
set(targets | ||
aix-C-XL-13.1.3 aix-CXX-XL-13.1.3 | ||
aix-C-XLClang-16.1.0.1 aix-CXX-XLClang-16.1.0.1 | ||
- craype-C-Cray-8.7 craype-CXX-Cray-8.7 craype-Fortran-Cray-8.7 | ||
+ craype-Fortran-Cray-8.7 | ||
craype-C-Cray-9.0-hlist-ad craype-CXX-Cray-9.0-hlist-ad craype-Fortran-Cray-9.0-hlist-ad | ||
craype-C-GNU-7.3.0 craype-CXX-GNU-7.3.0 craype-Fortran-GNU-7.3.0 | ||
craype-C-Intel-18.0.2.20180210 craype-CXX-Intel-18.0.2.20180210 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters