From d6b1afc7f645c29cd0a27e8b97eb18d2595ce805 Mon Sep 17 00:00:00 2001 From: tkoeppe Date: Tue, 20 Dec 2016 16:07:01 +0000 Subject: [PATCH] [BUILD] Add "-lm" linker flags, which are needed on certain platforms. This change was suggested in #12; this commit formats the change slightly differently. PiperOrigin-RevId: 142557801 --- BUILD | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BUILD b/BUILD index 966ba50f0..3c683b195 100644 --- a/BUILD +++ b/BUILD @@ -537,7 +537,10 @@ cc_binary( "-DQDECL=", "-pthread", ], - linkopts = ["-pthread"], + linkopts = [ + "-pthread", + "-lm", + ], visibility = ["//deepmind/level_generation:__subpackages__"], deps = ["@zlib_archive//:zlib"], ) @@ -908,7 +911,10 @@ cc_binary( ":non_pk3_assets", ":vm_pk3", ], - linkopts = ["-lGL"], + linkopts = [ + "-lGL", + "-lm", + ], deps = [ ":game_lib_sdl", "//deepmind/engine:callbacks",