[x265] [PATCH] cmake: Fix static-link-crt not working in linux
Pradeep Ramachandran
pradeep at multicorewareinc.com
Thu Mar 30 06:30:26 CEST 2017
# HG changeset patch
# User Pradeep Ramachandran <pradeep at multicorewareinc.com>
# Date 1490848216 -19800
# Thu Mar 30 10:00:16 2017 +0530
# Node ID 7e137e3ae083d2486622c21e7a6d2d034cac4d88
# Parent 1ba127d1cdcb9276fa7f7a642e528b20595c8220
cmake: Fix static-link-crt not working in linux
diff -r 1ba127d1cdcb -r 7e137e3ae083 source/CMakeLists.txt
--- a/source/CMakeLists.txt Wed Mar 29 14:41:32 2017 +0530
+++ b/source/CMakeLists.txt Thu Mar 30 10:00:16 2017 +0530
@@ -255,7 +255,7 @@
endif(FPROFILE_USE)
if(STATIC_LINK_CRT)
add_definitions(-static)
- list(APPEND LINKER_OPTIONS "-static")
+ list(APPEND LINKER_OPTIONS "-static-libgcc")
endif(STATIC_LINK_CRT)
check_cxx_compiler_flag(-Wno-strict-overflow CC_HAS_NO_STRICT_OVERFLOW)
check_cxx_compiler_flag(-Wno-narrowing CC_HAS_NO_NARROWING)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 847 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20170330/8d2041c8/attachment.bin>
More information about the x265-devel
mailing list