aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/glew/fix-LNK2019.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/glew/fix-LNK2019.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/glew/fix-LNK2019.patch')
-rw-r--r--vcpkg/ports/glew/fix-LNK2019.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/glew/fix-LNK2019.patch b/vcpkg/ports/glew/fix-LNK2019.patch
new file mode 100644
index 0000000..8b628fa
--- /dev/null
+++ b/vcpkg/ports/glew/fix-LNK2019.patch
@@ -0,0 +1,17 @@
+diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt
+index 419c243..f81fab4 100644
+--- a/build/cmake/CMakeLists.txt
++++ b/build/cmake/CMakeLists.txt
+@@ -120,9 +120,9 @@ if (MSVC)
+ target_compile_options (glew PRIVATE -GS-)
+ target_compile_options (glew_s PRIVATE -GS-)
+ # remove stdlib dependency
+- target_link_libraries (glew LINK_PRIVATE -nodefaultlib -noentry)
+- target_link_libraries (glew LINK_PRIVATE libvcruntime.lib)
+- target_link_libraries (glew LINK_PRIVATE msvcrt.lib )
++ #target_link_libraries (glew LINK_PRIVATE -nodefaultlib -noentry)
++ #target_link_libraries (glew LINK_PRIVATE libvcruntime.lib)
++ #target_link_libraries (glew LINK_PRIVATE msvcrt.lib )
+ string(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
+ elseif (WIN32 AND ((CMAKE_C_COMPILER_ID MATCHES "GNU") OR (CMAKE_C_COMPILER_ID MATCHES "Clang")))
+ # remove stdlib dependency on windows with GCC and Clang (for similar reasons