From: Yves-Alexis Perez Date: Wed, 11 Nov 2009 22:41:08 +0000 (+0100) Subject: Explicitly link to X11 to not rely on indirect library linking X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42174b473aeea9a649b9410e997980d69ace9239;p=midori Explicitly link to X11 to not rely on indirect library linking It is recommended by Debian and required for the gold linker. --- diff --git a/midori/wscript_build b/midori/wscript_build index 2d1ae2c9..dd8c3a15 100644 --- a/midori/wscript_build +++ b/midori/wscript_build @@ -19,7 +19,7 @@ obj.name = 'panels' obj.target = 'panels' obj.includes = '. ..' obj.find_sources_in_dirs ('../panels') -obj.uselib = 'UNIQUE LIBSOUP GMODULE GTHREAD GIO GTK SQLITE WEBKIT LIBXML' +obj.uselib = 'UNIQUE LIBSOUP GMODULE GTHREAD GIO GTK SQLITE WEBKIT LIBXML X11' obj.uselib_local = 'midori-core' obj.install_path = None diff --git a/wscript b/wscript index e686b134..6dd8b610 100644 --- a/wscript +++ b/wscript @@ -137,6 +137,9 @@ def configure (conf): Utils.pprint ('BLUE', 'Mingw recognized, assuming cross compile.') + if Options.platform != 'win32': + conf.check_cc (lib='X11', uselib='X11') + if conf.env['CONVERT'] and not conf.env['WINRC']: Utils.pprint ('YELLOW', 'midori.ico won\'t be created')