Files
sniffnet/Cross.toml
2026-07-19 11:46:31 +02:00

35 lines
2.1 KiB
TOML

[target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture amd64",
"apt update -y && apt install -y libpcap-dev:amd64 libasound2-dev:amd64 libfontconfig1-dev:amd64",
# aws-lc-sys's custom build script errors with this:
# Your compiler (cc) is not supported due to a memcmp related bug reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189. We strongly recommend against using this compiler.
"apt-get -y install gcc-10 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60"
]
[target.i686-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture i386",
"apt update -y && apt install -y libpcap-dev:i386 libasound2-dev:i386 libfontconfig1-dev:i386",
# aws-lc-sys's custom build script errors with this:
# Your compiler (cc) is not supported due to a memcmp related bug reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189. We strongly recommend against using this compiler.
"apt-get -y install gcc-10 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60"
]
[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture arm64",
"apt update -y && apt install -y libpcap-dev:arm64 libasound2-dev:arm64 libfontconfig1-dev:arm64",
# aws-lc-sys's custom build script errors with this:
# Your compiler (cc) is not supported due to a memcmp related bug reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189. We strongly recommend against using this compiler.
"apt-get -y install gcc-10 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60"
]
[target.armv7-unknown-linux-gnueabihf]
pre-build = [
"dpkg --add-architecture armhf",
"apt update -y && apt install -y libpcap-dev:armhf libasound2-dev:armhf libfontconfig1-dev:armhf",
# aws-lc-sys's custom build script errors with this:
# Your compiler (cc) is not supported due to a memcmp related bug reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189. We strongly recommend against using this compiler.
"apt-get -y install gcc-10 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60"
]