$OpenBSD: patch-ui_ui_gyp,v 1.3 2011/12/14 16:58:19 robert Exp $
--- ui/ui.gyp.orig	Tue Dec 13 21:38:32 2011
+++ ui/ui.gyp	Tue Dec 13 21:38:56 2011
@@ -509,7 +509,6 @@
             'link_settings': {
               'libraries': [
                 '-lX11',
-                '-ldl',
               ],
             },
           },
@@ -525,6 +524,11 @@
             'base/x/x11_util_internal.h',
           ],
         }],
+        ['OS=="openbsd" and use_system_libjpeg==1', {
+          'include_dirs': [
+            '/usr/local/include',
+           ],
+         }],
         ['chromeos==1', {
           # On Chrome OS we replace the default GTK look with a special look.
           'sources!': [
