From 1d4cb8b14bb7d52ccec0828bcd489e683afb2aa7 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 25 Sep 2016 23:05:02 +0200
Subject: [PATCH 04/10] Link against dxguid, d3d9 and gdi32

---
 src/libEGL.gypi    | 3 +++
 src/libGLESv2.gypi | 3 +++
 util/util.gyp      | 7 +++++++
 3 files changed, 13 insertions(+)

diff --git a/src/libEGL.gypi b/src/libEGL.gypi
index 05a2c24..aaa8bbf 100644
--- a/src/libEGL.gypi
+++ b/src/libEGL.gypi
@@ -41,6 +41,9 @@
                     'ldflags': [ '-Wl,--out-implib,libEGL.dll.a ../../../src/libEGL/libEGL.def' ],
                 }],
             ],
+            'libraries': [
+                '-ldxguid -ld3d9 -lgdi32'
+            ]
         },
     ],
 }
diff --git a/src/libGLESv2.gypi b/src/libGLESv2.gypi
index 325ffc8..cd69e44 100644
--- a/src/libGLESv2.gypi
+++ b/src/libGLESv2.gypi
@@ -1074,6 +1074,9 @@
                     'ldflags': [ '-Wl,--out-implib,libGLESv2.dll.a ../../../src/libGLESv2/libGLESv2.def' ],
                 }],
             ],
+            'libraries': [
+                '-ldxguid -ld3d9 -lgdi32'
+            ]
         },
     ],
 }
diff --git a/util/util.gyp b/util/util.gyp
index 08d4951..b8e08c1 100644
--- a/util/util.gyp
+++ b/util/util.gyp
@@ -144,6 +144,13 @@
                     [
                         '<@(util_win32_sources)',
                     ],
+                    'link_settings':
+                    {
+                        'libraries':
+                        [
+                            '-lgdi32',
+                        ]
+                    },
                 }],
                 ['OS=="win" and angle_build_winrt==1',
                 {
-- 
2.10.2

