Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d5ddf95 authored by Allen Webb's avatar Allen Webb
Browse files

floss: use pkg-config for linking protobuf and flatbuffers

These libraries provide pkg-config files, so use them for the build and
link flags since newer versions of protobuf include linker flags for
abseil-cpp libraries.

Bug: 303101747
Test: mmm packages/modules/Bluetooth
  # and emerge-${BOARD} floss
Change-Id: I247784a98b433f9f999342c680ea1bbe7476a106
parent 806070af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@ fn main() {
    println!("cargo:rerun-if-changed={}", cxx_outdir.into_string().unwrap());

    // A few dynamic links
    println!("cargo:rustc-link-lib=dylib=flatbuffers");
    println!("cargo:rustc-link-lib=dylib=protobuf");
    Config::new().probe("flatbuffers").unwrap();
    Config::new().probe("protobuf").unwrap();
    println!("cargo:rustc-link-lib=dylib=resolv");

    // Clang requires -lc++ instead of -lstdc++