changed the .a to .so, for cross compile fails in release mode
This commit is contained in:
parent
9a72c29870
commit
ec68a54957
@ -3,9 +3,11 @@ linker = "x86_64-linux-musl-gcc"
|
||||
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
ar = "aarch64-linux-gnu-ar"
|
||||
# ranlib = "aarch64-linux-gnu-ranlib"
|
||||
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
linker = "x86_64-w64-mingw32-gcc"
|
||||
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-gnu"
|
||||
# [build]
|
||||
# target = "x86_64-unknown-linux-gnu"
|
||||
1141
Cargo.lock
generated
1141
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@ prost = "0.12.6"
|
||||
prost-build = "0.12.6"
|
||||
rand = "0.8.5"
|
||||
rsa = "0.9.6"
|
||||
sdlan-sn-rs = { git = "ssh://git@git.asxalex.pw/sdlan-v2/sdlan-rs.git" }
|
||||
sdlan-sn-rs = { git = "ssh://git@git2.asxalex.pw/sdlan-v2/sdlan-rs.git" }
|
||||
# sdlan-sn-rs = {path = "../sdlan-rs"}
|
||||
# sdlan-sn-rs = { git = "https://git.asxalex.pw/sdlan-v2/sdlan-rs.git" }
|
||||
structopt = "0.3.26"
|
||||
|
||||
4
remote.record
Normal file
4
remote.record
Normal file
@ -0,0 +1,4 @@
|
||||
origin git@git.asxalex.pw:rust/sdlan-lib-rs.git (fetch)
|
||||
origin git@git.asxalex.pw:rust/sdlan-lib-rs.git (push)
|
||||
origin2 http://101.43.184.190:3000/xlf/sdlan-lib-rs.git (fetch)
|
||||
origin2 http://101.43.184.190:3000/xlf/sdlan-lib-rs.git (push)
|
||||
@ -30,7 +30,8 @@ use crate::utils::{caculate_crc, mac_to_string};
|
||||
use super::device::{DeviceConfig, Mode};
|
||||
use super::TunTapPacketHandler;
|
||||
|
||||
#[link(name = "tuntap", kind="static")]
|
||||
// #[link(name = "tuntap", kind="static")]
|
||||
#[link(name = "tuntap")]
|
||||
extern "C" {
|
||||
fn tuntap_setup(fd: c_int, name: *mut u8, mode: c_int, packet_info: c_int) -> c_int;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user