Skip to content

Commit

Permalink
opentelemetry-cpp 1.9.1
Browse files Browse the repository at this point in the history
* opentelemetry-cpp 1.9.1
* opentelemetry-cpp: build with dynamic_lookup
* opentelemetry-cpp: fix test on Linux

Closes #132204.

Co-authored-by: Michael Cho <cho-m@tuta.io>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
2 people authored and BrewTestBot committed Jul 1, 2023
1 parent 49bf5f1 commit ec37aff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/opentelemetry-cpp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ class OpentelemetryCpp < Formula
desc "OpenTelemetry C++ Client"
homepage "https://opentelemetry.io/"
# TODO: Check if we can use unversioned `grpc` and `protobuf` at version bump.
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.8.2.tar.gz"
sha256 "20fa97e507d067e9e2ab0c1accfc334f5a4b10d01312e55455dc3733748585f4"
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.9.1.tar.gz"
sha256 "668de24f81c8d36d75092ad9dcb02a97cd41473adbe72485ece05e336db48249"
license "Apache-2.0"
revision 1
head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main"

bottle do
Expand All @@ -28,6 +27,7 @@ class OpentelemetryCpp < Formula
uses_from_macos "curl"

def install
ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup" if OS.mac?
system "cmake", "-S", ".", "-B", "build",
"-DCMAKE_CXX_STANDARD=17", # Keep in sync with C++ standard in abseil.rb
"-DCMAKE_INSTALL_RPATH=#{rpath}",
Expand Down Expand Up @@ -79,8 +79,8 @@ def install
"-I#{include}", "-L#{lib}",
"-I#{Formula["protobuf@21"].opt_include}",
"-lopentelemetry_resources",
"-lopentelemetry_trace",
"-lopentelemetry_exporter_ostream_span",
"-lopentelemetry_trace",
"-lopentelemetry_common",
"-pthread",
"-o", "simple-example"
Expand Down

0 comments on commit ec37aff

Please sign in to comment.