aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/plplot/fix-pc-absolute.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/plplot/fix-pc-absolute.patch')
-rw-r--r--vcpkg/ports/plplot/fix-pc-absolute.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/plplot/fix-pc-absolute.patch b/vcpkg/ports/plplot/fix-pc-absolute.patch
new file mode 100644
index 0000000..aa43451
--- /dev/null
+++ b/vcpkg/ports/plplot/fix-pc-absolute.patch
@@ -0,0 +1,26 @@
+diff --git a/cmake/modules/wingcc.cmake b/cmake/modules/wingcc.cmake
+index 25a7494..bb0f476 100644
+--- a/cmake/modules/wingcc.cmake
++++ b/cmake/modules/wingcc.cmake
+@@ -40,7 +40,7 @@ if(PLD_wingcc)
+ endif(GDI32_LIBRARY)
+ if(GDI32_LIBRARY AND COMDLG32_LIBRARY)
+ message(STATUS "Looking for gdi32 header and library - found")
+- set(wingcc_LINK_FLAGS "${GDI32_LIBRARY};${COMDLG32_LIBRARY}")
++ set(wingcc_LINK_FLAGS "-lgdi32;-lcomdlg32")
+ if(WITH_FREETYPE)
+ set(
+ wingcc_COMPILE_FLAGS
+diff --git a/cmake/modules/wingdi.cmake b/cmake/modules/wingdi.cmake
+index bbe7aed..24c29f9 100644
+--- a/cmake/modules/wingdi.cmake
++++ b/cmake/modules/wingdi.cmake
+@@ -41,7 +41,7 @@ if(PLD_wingdi)
+ endif(GDI32_LIBRARY)
+ if(GDI32_LIBRARY AND COMDLG32_LIBRARY AND COMCTL32_LIBRARY)
+ message(STATUS "Looking for gdi32 header and library - found")
+- set(wingdi_LINK_FLAGS "${GDI32_LIBRARY};${COMDLG32_LIBRARY};${COMCTL32_LIBRARY}")
++ set(wingdi_LINK_FLAGS "-lgdi32;-lcomdlg32;-lcomctl32")
+ set(DRIVERS_LINK_FLAGS ${DRIVERS_LINK_FLAGS} ${wingdi_LINK_FLAGS})
+ else(GDI32_LIBRARY AND COMDLG32_LIBRARY AND COMCTL32_LIBRARY)
+ message(STATUS "Looking for gdi32 header and library - not found")