summarylogtreecommitdiffstats
path: root/010-jpegli-disable-exe-static-linking.patch
blob: 2743bf0f6598a3057370da14255775837da452b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -223,11 +223,11 @@ if(JPEGXL_STATIC)
   # ourselves; for real use case we don't care about stdlib, as it is "granted",
   # so just linking all other libraries is fine.
   if (NOT MSVC AND NOT APPLE)
-    string(APPEND CMAKE_EXE_LINKER_FLAGS " -static")
+    #string(APPEND CMAKE_EXE_LINKER_FLAGS " -static")
   endif()
   if ((NOT WIN32 AND NOT APPLE) OR CYGWIN OR MINGW)
     set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
-    string(APPEND CMAKE_EXE_LINKER_FLAGS " -static-libgcc -static-libstdc++")
+    #string(APPEND CMAKE_EXE_LINKER_FLAGS " -static-libgcc -static-libstdc++")
   endif()
 endif()  # JPEGXL_STATIC