Replies: 1 comment
-
A bit late to join here, but instead of specifying Not sure whether this would resolve your issue, but it did seem to work for me in another package. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Yesterday I needed to bazelize my build of icu4c and the way
configure_make
emitsARFLAGS
to the environment, and the way ICU consumesARFLAGS
, are not compatible. Specifically, right here:https://github.com/unicode-org/icu/blob/289d9703a03494ef0d9dfec122169b22bd9fc84f/icu4c/source/icudefs.mk.in#L120
With typical toolchain setup, this results in an invocation
ar rcsD r name.a name.o
which is not valid. I don't think I'm the first person to face this problem, as I found this hack for building rdkafka withconfigure_make
at https://github.com/envoyproxy/envoy/blob/main/bazel/foreign_cc/BUILD#L65. I worked around my ICU issue with a similar hack: makingARFLAGS=
be the first argument toconfigure
so it overrides theARFLAGS
that bazel is setting in the environment.The whole issue seems a bit gross, though. Is the argument format of
ar
just impossible to deal with? Is this best fixed in ICU or in bazel?Beta Was this translation helpful? Give feedback.
All reactions