From 5692808c3bfb91626c9d1542eaa1e9691a64ea15 Mon Sep 17 00:00:00 2001 From: Nathan Bunrham Date: Mon, 19 Dec 2016 05:52:49 -0500 Subject: [PATCH] Fixed a problem with linking the math library on ubuntu 14.04 and 16.04 --- BUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD b/BUILD index 966ba50f0..4a81b6d38 100644 --- a/BUILD +++ b/BUILD @@ -537,7 +537,7 @@ cc_binary( "-DQDECL=", "-pthread", ], - linkopts = ["-pthread"], + linkopts = ["-pthread", "-lm"], visibility = ["//deepmind/level_generation:__subpackages__"], deps = ["@zlib_archive//:zlib"], ) @@ -908,7 +908,7 @@ cc_binary( ":non_pk3_assets", ":vm_pk3", ], - linkopts = ["-lGL"], + linkopts = ["-lGL", "-lm"], deps = [ ":game_lib_sdl", "//deepmind/engine:callbacks",