Skip to content

Commit

Permalink
[BUILD] Add "-lm" linker flags, which are needed on certain platforms.
Browse files Browse the repository at this point in the history
This change was suggested in #12; this commit formats the change slightly differently.

PiperOrigin-RevId: 142557801
  • Loading branch information
tkoeppe committed Dec 20, 2016
1 parent 432e063 commit d6b1afc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,10 @@ cc_binary(
"-DQDECL=",
"-pthread",
],
linkopts = ["-pthread"],
linkopts = [
"-pthread",
"-lm",
],
visibility = ["//deepmind/level_generation:__subpackages__"],
deps = ["@zlib_archive//:zlib"],
)
Expand Down Expand Up @@ -908,7 +911,10 @@ cc_binary(
":non_pk3_assets",
":vm_pk3",
],
linkopts = ["-lGL"],
linkopts = [
"-lGL",
"-lm",
],
deps = [
":game_lib_sdl",
"//deepmind/engine:callbacks",
Expand Down

0 comments on commit d6b1afc

Please sign in to comment.