Skip to content

Commit

Permalink
fix: remove dynamic libpcap
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchaoa committed Oct 17, 2024
1 parent f14c631 commit 83987a8
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 @@ -156,6 +156,7 @@ walkdir = "2"
[features]
enterprise = ["extended_profile", "enterprise-utils"]
extended_profile = []
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 @@ -193,7 +193,10 @@ fn set_linkage() -> Result<()> {
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 83987a8

Please sign in to comment.