summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-01-19 18:41:40 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-01-25 12:41:02 +0000
commitba2e7b151bb0ee97c136a44c62555a1b7be80371 (patch)
treec4333849810e2fa3b270902014e7e277d77f785b /src
parentbbcc3b4b81203726add2e11d8cb29728a79bca7b (diff)
downloadlibepoxy-ba2e7b151bb0ee97c136a44c62555a1b7be80371.tar.gz
build: Explicitly link against gdi32
We need to explicitly link against gdi32 in order to access SetPixelFormat and ChoosetPixelFormat, and the order of the linking is relevant when using static libraries. This is a slight workaround to the order of compiler arguments generated by Meson, and it's supposed to go away in the near future.
Diffstat (limited to 'src')
-rw-r--r--src/meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/meson.build b/src/meson.build
index c47a674..05d4f7b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -91,8 +91,7 @@ endif
epoxy_deps = [ dl_dep, ]
if host_system == 'windows'
- ogl_dep = cc.find_library('opengl32', required: true)
- epoxy_deps += [ ogl_dep, ]
+ epoxy_deps += [ opengl32_dep, gdi32_dep ]
endif
# Allow building a static version of epoxy