Skip to content

Commit

Permalink
explicitly unset linker in libsodium configure_make rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmncs committed Jul 14, 2020
1 parent 91af3b9 commit 0c1a81e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions external/sodium/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@ configure_make(
lib_source = "@sodium//:.",
static_libraries = ["libsodium.a"],
visibility = ["//visibility:public"],
# libsodium script uses its own linker, so explicitly unset the default
# libtool from rules_foreign_cc
# (otherwise, if the libtool from bazel's toolchain is supplied,
# the build script has problems with passing output file to libtool)
# see bazelbuild/rules_foreign_cc#315
configure_env_vars = {
"AR": "",
},
)

0 comments on commit 0c1a81e

Please sign in to comment.