Merge pull request #84933 from matthewbauer/fix-bazel-copts

build-bazel-package: fix linkopt flags
This commit is contained in:
Matthew Bauer 2020-04-11 15:31:35 -04:00 committed by GitHub
commit 9ef6f1aa99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,9 +181,9 @@ in stdenv.mkDerivation (fBuildAttrs // {
done
linkopts=()
host_linkopts=()
for flag in $NIX_LD_FLAGS; do
linkopts+=( "--linkopt=$flag" )
host_linkopts+=( "--host_linkopt=$flag" )
for flag in $NIX_LDFLAGS; do
linkopts+=( "--linkopt=-Wl,$flag" )
host_linkopts+=( "--host_linkopt=-Wl,$flag" )
done
BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 \