diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | build.rs | 6 | ||||
m--------- | libpcap | 0 |
3 files changed, 9 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6ceab00 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libpcap"] + path = libpcap + url = https://github.com/rsdsl/libpcap.git diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..1c29bfb --- /dev/null +++ b/build.rs @@ -0,0 +1,6 @@ +fn main() { + println!("{:?}", std::env::var("LIBPCAP_LIBDIR")); + println!("cargo:rustc-link-arg=-lc"); + println!("cargo:rustc-link-arg=-lnl-3"); + println!("cargo:rustc-link-arg=-lnl-genl-3"); +} diff --git a/libpcap b/libpcap new file mode 160000 +Subproject f828383609906455b9369b1ae86a75f0bd4ba37 |