From 5aea0b24340ecb6044b4fb3b91e513eeba0ec56c Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Thu, 30 Oct 2014 15:50:23 +1000 Subject: [PATCH] Link to libGL on Linux in the test module. This allows the unit tests for azure to link correctly. This code previously existed in rust-opengles, but azure no longer depends on rust-opengles. --- src/test.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test.rs b/src/test.rs index 4af49b2..f85ed01 100644 --- a/src/test.rs +++ b/src/test.rs @@ -2,6 +2,13 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// The azure unit tests require this +// on Linux to link correctly. + +#[cfg(target_os = "linux")] +#[link(name = "GL")] +extern { } + #[test] fn sanity_check() { use azure::AzSanityCheck;