aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ggml/relax-link-options.diff
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ggml/relax-link-options.diff')
-rw-r--r--vcpkg/ports/ggml/relax-link-options.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/ggml/relax-link-options.diff b/vcpkg/ports/ggml/relax-link-options.diff
new file mode 100644
index 0000000..8ecfdda
--- /dev/null
+++ b/vcpkg/ports/ggml/relax-link-options.diff
@@ -0,0 +1,14 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index c8f3d859..8aa425f6 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -117,9 +117,7 @@ if (NOT MSVC)
+ if (UNIX AND NOT APPLE)
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so")
+ endif()
+- add_link_options(-static)
+ if (MINGW)
+- add_link_options(-static-libgcc -static-libstdc++)
+ endif()
+ endif()
+ if (GGML_GPROF)