<div dir="ltr">Pushed 6 patches to the master and release4.1 branches.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2024 at 9:07 PM Hari Limaye <<a href="mailto:hari.limaye@arm.com">hari.limaye@arm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Add -static-libstdc++ when compiling with STATIC_LINK_CRT=ON.<br>
---<br>
source/CMakeLists.txt | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt<br>
index 5c1ae2359..310683909 100755<br>
--- a/source/CMakeLists.txt<br>
+++ b/source/CMakeLists.txt<br>
@@ -28,7 +28,7 @@ include(CheckCXXSourceCompiles)<br>
option(FPROFILE_GENERATE "Compile executable to generate usage data" OFF)<br>
option(FPROFILE_USE "Compile executable using generated usage data" OFF)<br>
option(NATIVE_BUILD "Target the build CPU" OFF)<br>
-option(STATIC_LINK_CRT "Statically link C runtime for release builds" OFF)<br>
+option(STATIC_LINK_CRT "Statically link C and C++ runtimes for release builds" OFF)<br>
mark_as_advanced(FPROFILE_USE FPROFILE_GENERATE NATIVE_BUILD)<br>
# X265_BUILD must be incremented each time the public API is changed<br>
set(X265_BUILD 213)<br>
@@ -446,7 +446,7 @@ int main() { return 0; }")<br>
endif(FPROFILE_USE)<br>
if(STATIC_LINK_CRT)<br>
add_definitions(-static)<br>
- list(APPEND LINKER_OPTIONS "-static-libgcc")<br>
+ list(APPEND LINKER_OPTIONS "-static-libgcc -static-libstdc++")<br>
endif(STATIC_LINK_CRT)<br>
check_cxx_compiler_flag(-Wno-strict-overflow CC_HAS_NO_STRICT_OVERFLOW)<br>
check_cxx_compiler_flag(-Wno-narrowing CC_HAS_NO_NARROWING) <br>
-- <br>
2.42.1<br>
<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div>