Skip to content

Commit

Permalink
fix: remove dynamic libpcap
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchaoa authored and sharang committed Oct 17, 2024
1 parent 52b05b4 commit 2e6cec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ tonic-build = "0.8.0"
[features]
enterprise = ["off_cpu", "enterprise-utils"]
off_cpu = []
dylib_pcap = []

[[bench]]
name = "common"
Expand Down
3 changes: 3 additions & 0 deletions agent/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ fn set_linkage() -> Result<(), Box<dyn Error>> {
println!("cargo:rustc-link-lib=dylib=pthread");
println!("cargo:rustc-link-lib=dylib=z");
println!("cargo:rustc-link-lib=dylib=stdc++");
#[cfg(feature = "dylib_pcap")]
println!("cargo:rustc-link-lib=dylib=pcap");
#[cfg(not(feature = "dylib_pcap"))]
println!("cargo:rustc-link-lib=static=pcap");
}
"musl" => {
#[cfg(target_arch = "x86_64")]
Expand Down

0 comments on commit 2e6cec2

Please sign in to comment.