[Bug]: Many modules add -lrt
as a linkopt, which only works on Linux
#2017
Labels
bug
Something isn't working
-lrt
as a linkopt, which only works on Linux
#2017
What happened?
It appears many of the module definitions add the
-lrt
linkopt explicitly in theirBUILD
file definition. See for examplebazel-central-registry/modules/websocketpp/0.8.2/patches/add_build_file.patch
Line 16 in 8645666
This link option is only valid on Linux. Other platforms, such as macOS, this just causes a link failure.
Version
Development (host) and target OS/architectures: macOS 13.6.6 (22G630)
Output of
bazel --version
: bazel 7.1.2How to reproduce
In the MODULE.bazel file:
The text was updated successfully, but these errors were encountered: